Skip to content

Commit 8436fe1

Browse files
cbeuwmichaelwoerister
authored andcommitted
Add test for showing remapped path in diagnostics
1 parent af1b65c commit 8436fe1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/test/ui/remap-path-prefix.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// compile-flags: --remap-path-prefix={{src-base}}=remapped
2+
3+
fn main() {
4+
ferris //~ ERROR cannot find value `ferris` in this scope
5+
}

src/test/ui/remap-path-prefix.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0425]: cannot find value `ferris` in this scope
2+
--> remapped/remap-path-prefix.rs:4:5
3+
|
4+
LL | ferris
5+
| ^^^^^^ not found in this scope
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0425`.

0 commit comments

Comments
 (0)