rust/tests/ui/object-safety/assoc_const_bounds_sized.rs
2024-02-16 20:02:50 +00:00

14 lines
195 B
Rust

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