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