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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
199 B
Rust
Raw Normal View History

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