mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 16:21:28 +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();
|
|
}
|