diff options
Diffstat (limited to 'tests/ui/resolve')
4 files changed, 29 insertions, 0 deletions
| diff --git a/tests/ui/resolve/cannot-find-value-in-scope-22811.rs b/tests/ui/resolve/cannot-find-value-in-scope-22811.rs new file mode 100644 index 00000000000..fc07ae5e60e --- /dev/null +++ b/tests/ui/resolve/cannot-find-value-in-scope-22811.rs @@ -0,0 +1,2 @@ +// https://github.com/rust-lang/rust/issues/22811 +fn main() { println!("{}", foobar); } //~ ERROR cannot find value `foobar` in this scope diff --git a/tests/ui/resolve/cannot-find-value-in-scope-22811.stderr b/tests/ui/resolve/cannot-find-value-in-scope-22811.stderr new file mode 100644 index 00000000000..529fd7e8f49 --- /dev/null +++ b/tests/ui/resolve/cannot-find-value-in-scope-22811.stderr @@ -0,0 +1,9 @@ +error[E0425]: cannot find value `foobar` in this scope + --> $DIR/cannot-find-value-in-scope-22811.rs:2:28 + | +LL | fn main() { println!("{}", foobar); } + | ^^^^^^ not found in this scope + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0425`. diff --git a/tests/ui/resolve/unresolved-module-error-33293.rs b/tests/ui/resolve/unresolved-module-error-33293.rs new file mode 100644 index 00000000000..354f9914d44 --- /dev/null +++ b/tests/ui/resolve/unresolved-module-error-33293.rs @@ -0,0 +1,7 @@ +// https://github.com/rust-lang/rust/issues/33293 +fn main() { + match 0 { + aaa::bbb(_) => () + //~^ ERROR failed to resolve: use of unresolved module or unlinked crate `aaa` + }; +} diff --git a/tests/ui/resolve/unresolved-module-error-33293.stderr b/tests/ui/resolve/unresolved-module-error-33293.stderr new file mode 100644 index 00000000000..28528148387 --- /dev/null +++ b/tests/ui/resolve/unresolved-module-error-33293.stderr @@ -0,0 +1,11 @@ +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aaa` + --> $DIR/unresolved-module-error-33293.rs:4:9 + | +LL | aaa::bbb(_) => () + | ^^^ use of unresolved module or unlinked crate `aaa` + | + = help: you might be missing a crate named `aaa` + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0433`. | 
