rust/tests/ui/rfcs/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.

14 lines
287 B
Rust
Raw Normal View History

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