rust/tests/ui/traits/const-traits/issue-102985.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

14 lines
288 B
Rust

//@ known-bug: #110395
#![feature(const_trait_impl)]
struct Bug {
inner: [(); match || 1 {
n => n(),
//FIXME ~^ ERROR the trait bound
//FIXME ~| ERROR the trait bound
//FIXME ~| ERROR cannot call non-const closure in constants
}],
}
fn main() {}