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.

15 lines
194 B
Rust
Raw Normal View History

2023-07-10 00:10:20 -05:00
#![feature(generic_const_items)]
#![allow(incomplete_features, dead_code)]
// check-pass
trait Foo {
const BAR: bool
2023-07-10 00:10:20 -05:00
where
Self: Sized;
}
fn foo(_: &dyn Foo) {}
fn main() {}