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

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