mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
10 lines
144 B
Rust
10 lines
144 B
Rust
#![feature(const_trait_impl)]
|
|
|
|
#[const_trait]
|
|
trait Bar {}
|
|
|
|
fn foo<T>() where T: ~const Bar {}
|
|
//~^ ERROR `~const` is not allowed
|
|
|
|
fn main() {}
|