Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix remap-path-prefix UI test case.
  • Loading branch information
michaelwoerister committed Aug 27, 2021
commit c296c89be601a57597a1c262b9e3a4c9b4d056cf
6 changes: 5 additions & 1 deletion src/test/ui/remap-path-prefix.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// compile-flags: --remap-path-prefix={{src-base}}=remapped

fn main() {
ferris //~ ERROR cannot find value `ferris` in this scope
// We cannot actually put an ERROR marker here because
// the file name in the error message is not what the
// test framework expects (since the filename gets remapped).
// We still test the expected error in the stderr file.
ferris
}
2 changes: 1 addition & 1 deletion src/test/ui/remap-path-prefix.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0425]: cannot find value `ferris` in this scope
--> remapped/remap-path-prefix.rs:4:5
--> remapped/remap-path-prefix.rs:8:5
|
LL | ferris
| ^^^^^^ not found in this scope
Expand Down