mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
13 lines
247 B
Rust
13 lines
247 B
Rust
#![feature(const_trait_impl)]
|
|
|
|
struct Bug {
|
|
inner: [(); match || 1 {
|
|
n => n(),
|
|
//~^ ERROR the trait bound
|
|
//~| ERROR the trait bound
|
|
//~| ERROR cannot call non-const closure in constants
|
|
}],
|
|
}
|
|
|
|
fn main() {}
|