rust/tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs
2023-01-11 09:32:08 +00:00

31 lines
461 B
Rust

struct Wrapper<T>(T);
fn foo<T>(foo: Wrapper<T>)
//~^ ERROR the size for values of type `T` cannot be known at compilation time
where
T
:
?
Sized
{
//
}
fn bar<T>(foo: Wrapper<T>)
//~^ ERROR the size for values of type `T` cannot be known at compilation time
where T: ?Sized
{
//
}
fn qux<T>(foo: Wrapper<T>)
//~^ ERROR the size for values of type `T` cannot be known at compilation time
where
T: ?Sized
{
//
}
fn main() {}