diff options
Diffstat (limited to 'tests/ui/rfc-2126-crate-paths')
4 files changed, 0 insertions, 39 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 deleted file mode 100644 index 79f6b0dfe..000000000 --- a/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs +++ /dev/null @@ -1,11 +0,0 @@ -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() {} diff --git a/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr b/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr deleted file mode 100644 index 7e7ee3ce0..000000000 --- a/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0433]: failed to resolve: `crate` in paths can only be used in start position - --> $DIR/crate-path-non-absolute.rs:5:22 - | -LL | let s = ::m::crate::S; - | ^^^^^ `crate` in paths can only be used in start position - -error[E0433]: failed to resolve: global paths cannot start with `crate` - --> $DIR/crate-path-non-absolute.rs:6:20 - | -LL | let s1 = ::crate::S; - | ^^^^^ global paths cannot start with `crate` - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0433`. diff --git a/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs b/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs deleted file mode 100644 index 019ef8e9d..000000000 --- a/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - let crate = 0; - //~^ ERROR expected unit struct, unit variant or constant, found module `crate` -} diff --git a/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr b/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr deleted file mode 100644 index c39a70f66..000000000 --- a/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0532]: expected unit struct, unit variant or constant, found module `crate` - --> $DIR/keyword-crate-as-identifier.rs:2:9 - | -LL | let crate = 0; - | ^^^^^ not a unit struct, unit variant or constant - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0532`. |