rust/tests/ui/rfc-2632-const-trait-impl/issue-102985.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
247 B
Rust
Raw Normal View History

#![feature(const_trait_impl)]
struct Bug {
inner: [(); match || 1 {
n => n(),
//~^ ERROR the trait bound
2022-10-19 23:19:54 -05:00
//~| ERROR the trait bound
//~| ERROR cannot call non-const closure in constants
}],
}
fn main() {}