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

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

7 lines
153 B
Rust
Raw Normal View History

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