mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
12 lines
184 B
Rust
12 lines
184 B
Rust
//@ compile-flags: -Znext-solver
|
|
//@ check-pass
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
const fn opaque() -> impl Sized {}
|
|
|
|
fn main() {
|
|
let mut x = const { opaque() };
|
|
x = opaque();
|
|
}
|