rust/tests/ui/associated-type-bounds/suggest-removing-impl.rs

15 lines
308 B
Rust

trait Tr {
type Assoc: impl Sized;
//~^ ERROR expected a trait, found type
//~| HELP use the trait bounds directly
fn fn_with_generics<T>()
where
T: impl Sized
//~^ ERROR expected a trait, found type
//~| HELP use the trait bounds directly
{}
}
fn main() {}