Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
issue-102985.rs
blob: e5394ddd688e3d9f141a443cd0a4580f44aef8c6 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}