about summary refs log tree commit diff
path: root/tests/ui/resolve/cannot-find-value-in-scope-22811.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/cannot-find-value-in-scope-22811.rs')
-rw-r--r--tests/ui/resolve/cannot-find-value-in-scope-22811.rs2
1 files changed, 2 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