rust/tests/ui/unsized/unsized-fn-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
160 B
Rust
Raw Normal View History

//@ 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