]> git.lizzy.rs Git - rust.git/blob - tests/ui/errors/remap-path-prefix-reverse.local-self.stderr
Rollup merge of #106148 - chenyukang:yukang/fix-105061-unused, r=lcnr
[rust.git] / tests / ui / errors / remap-path-prefix-reverse.local-self.stderr
1 error[E0423]: expected value, found struct `remapped_dep::SomeStruct`
2   --> $DIR/remap-path-prefix-reverse.rs:22:13
3    |
4 LL |     let _ = remapped_dep::SomeStruct;
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `remapped_dep::SomeStruct {}`
6    |
7   ::: remapped-aux/remapped_dep.rs:3:1
8    |
9 LL | pub struct SomeStruct {} // This line should be show as part of the error.
10    | --------------------- `remapped_dep::SomeStruct` defined here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0423`.