rust/tests/ui/traits/const-traits/dont-observe-host-opaque.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
239 B
Rust
Raw Normal View History

2024-10-21 20:16:33 +00:00
//@ 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();
}