mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-08 13:18:32 +00:00
13 lines
239 B
Rust
13 lines
239 B
Rust
![]() |
//@ compile-flags: -Znext-solver
|
||
|
//@ check-pass
|
||
|
|
||
|
#![feature(const_trait_impl, effects)]
|
||
|
//~^ WARN the feature `effects` is incomplete
|
||
|
|
||
|
const fn opaque() -> impl Sized {}
|
||
|
|
||
|
fn main() {
|
||
|
let mut x = const { opaque() };
|
||
|
x = opaque();
|
||
|
}
|