summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unsized/unsized-fn-arg.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unsized/unsized-fn-arg.fixed')
-rw-r--r--src/test/ui/unsized/unsized-fn-arg.fixed6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/unsized/unsized-fn-arg.fixed b/src/test/ui/unsized/unsized-fn-arg.fixed
new file mode 100644
index 000000000..fd9b159a4
--- /dev/null
+++ b/src/test/ui/unsized/unsized-fn-arg.fixed
@@ -0,0 +1,6 @@
+// run-rustfix
+#![crate_type="lib"]
+#![allow(unused)]
+
+fn f<T>(t: &T) {}
+//~^ ERROR the size for values of type `T` cannot be known at compilation time