summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs
blob: 79f6b0dfe34ee0723294000ac2228f8ef36121db (plain)
1
2
3
4
5
6
7
8
9
10
11
struct S;

pub mod m {
    fn f() {
        let s = ::m::crate::S; //~ ERROR failed to resolve
        let s1 = ::crate::S; //~ ERROR failed to resolve
        let s2 = crate::S; // no error
    }
}

fn main() {}