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