summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsized/unsized-fn-arg.rs
blob: 9fc08bd6d3e755d63518a572592ca37ad58de30f (plain)
1
2
3
4
5
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