diff options
Diffstat (limited to 'tests/ui/unsized/unsized-fn-arg.fixed')
-rw-r--r-- | tests/ui/unsized/unsized-fn-arg.fixed | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/unsized/unsized-fn-arg.fixed b/tests/ui/unsized/unsized-fn-arg.fixed new file mode 100644 index 000000000..fd9b159a4 --- /dev/null +++ b/tests/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 |