rust/tests/crashes/118320.rs

15 lines
215 B
Rust
Raw Normal View History

//@ known-bug: #118320
//@ edition:2021
#![feature(const_trait_impl, effects, const_closures)]
#[const_trait]
trait Bar {
fn foo(&self);
}
impl Bar for () {}
const FOO: () = {
(const || (()).foo())();
};