]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr
Auto merge of #53235 - varkor:gat_impl_where, r=estebank
[rust.git] / src / test / ui / rfc-2126-crate-paths / crate-path-non-absolute.stderr
1 error[E0433]: failed to resolve. `crate` in paths can only be used in start position
2   --> $DIR/crate-path-non-absolute.rs:17:22
3    |
4 LL |         let s = ::m::crate::S; //~ ERROR failed to resolve
5    |                      ^^^^^ `crate` in paths can only be used in start position
6
7 error[E0433]: failed to resolve. global paths cannot start with `crate`
8   --> $DIR/crate-path-non-absolute.rs:18:20
9    |
10 LL |         let s1 = ::crate::S; //~ ERROR failed to resolve
11    |                    ^^^^^ global paths cannot start with `crate`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0433`.