mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
19 lines
264 B
Rust
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() {}
|