rust/tests/ui/dyn-compatibility/assoc_const_bounds_sized.rs
2024-10-10 01:13:29 +02:00

15 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() {}