blob: 242cd85727dc99e67b1acbddc3849a25286e42d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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() {}
|