fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
588 B15 linesraw
1error[E0433]: failed to resolve: `crate` in paths can only be used in start position
2  --> $DIR/crate-path-non-absolute.rs:7:22
3   |
4LL |         let s = ::m::crate::S;
5   |                      ^^^^^ `crate` in paths can only be used in start position
6
7error[E0433]: failed to resolve: global paths cannot start with `crate`
8  --> $DIR/crate-path-non-absolute.rs:8:20
9   |
10LL |         let s1 = ::crate::S;
11   |                    ^^^^^ global paths cannot start with `crate`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0433`.