rust/tests/ui/object-safety/assoc_const_bounds.rs
León Orell Valerian Liehr 55aba32ac5
Update existing UI tests
2023-07-28 22:23:21 +02:00

19 lines
264 B
Rust

#![feature(generic_const_items)]
#![allow(incomplete_features, dead_code)]
// check-pass
trait Foo<T> {
const BAR: bool
where
Self: Sized;
}
trait Cake {}
impl Cake for () {}
fn foo(_: &dyn Foo<()>) {}
fn bar(_: &dyn Foo<i32>) {}
fn main() {}