diff options
Diffstat (limited to 'tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs')
-rw-r--r-- | tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs b/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs new file mode 100644 index 000000000..79f6b0dfe --- /dev/null +++ b/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs @@ -0,0 +1,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() {} |