]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs
Compress amount of hashed bytes for `isize` values in StableHasher
[rust.git] / src / test / ui / rfc-2126-crate-paths / crate-path-non-absolute.rs
1 #![feature(crate_in_paths)]
2
3 struct S;
4
5 pub mod m {
6     fn f() {
7         let s = ::m::crate::S; //~ ERROR failed to resolve
8         let s1 = ::crate::S; //~ ERROR failed to resolve
9         let s2 = crate::S; // no error
10     }
11 }
12
13 fn main() {}