blob: 94b1f63165ba2c25c0f83500750cd2ed0255988c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
trait Foo<T> {
const BAR: bool
where //~ ERROR: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `=`, found keyword `where`
Self: Sized;
}
trait Cake {}
impl Cake for () {}
fn foo(_: &dyn Foo<()>) {}
fn bar(_: &dyn Foo<i32>) {}
fn main() {}
|