rust/tests/ui/object-safety/assoc_const_bounds_sized.rs

10 lines
199 B
Rust

trait Foo {
const BAR: bool
where //~ ERROR: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `=`, found keyword `where`
Self: Sized;
}
fn foo(_: &dyn Foo) {}
fn main() {}