]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr
Rollup merge of #107757 - clubby789:setup-settings-json, r=jyn514
[rust.git] / tests / 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:5:22
3    |
4 LL |         let s = ::m::crate::S;
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:6:20
9    |
10 LL |         let s1 = ::crate::S;
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`.