Skip to content

Commit

Permalink
Fix remap-path-prefix UI test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Aug 27, 2021
1 parent 8436fe1 commit c296c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit c296c89

Please sign in to comment.