]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized/unsized-fn-arg.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / unsized / unsized-fn-arg.rs
1 // run-rustfix
2 #![crate_type="lib"]
3 #![allow(unused)]
4
5 fn f<T: ?Sized>(t: T) {}
6 //~^ ERROR the size for values of type `T` cannot be known at compilation time