mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
15 lines
215 B
Rust
15 lines
215 B
Rust
//@ 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())();
|
|
};
|