summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/autoderef-with-param-env-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/typeck/autoderef-with-param-env-error.rs')
-rw-r--r--src/test/ui/typeck/autoderef-with-param-env-error.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/typeck/autoderef-with-param-env-error.rs b/src/test/ui/typeck/autoderef-with-param-env-error.rs
new file mode 100644
index 000000000..ec96c61c6
--- /dev/null
+++ b/src/test/ui/typeck/autoderef-with-param-env-error.rs
@@ -0,0 +1,9 @@
+fn foo()
+where
+ T: Send,
+ //~^ cannot find type `T` in this scope
+{
+ let s = "abc".to_string();
+}
+
+fn main() {}