]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/issue-102985.rs
Rollup merge of #99244 - gthb:doc-improve-iterator-scan, r=m-ou-se
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / issue-102985.rs
1 #![feature(const_trait_impl)]
2
3 struct Bug {
4     inner: [(); match || 1 {
5         n => n(),
6         //~^ ERROR the trait bound
7         //~| ERROR the trait bound
8         //~| ERROR cannot call non-const closure in constants
9     }],
10 }
11
12 fn main() {}