os-rust/tests/ui/traits/next-solver/constrain-alias-goals-in-unsize.rs

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

19 lines
247 B
Rust
Raw Normal View History

//@ compile-flags: -Znext-solver
//@ check-pass
use std::mem::ManuallyDrop;
trait Foo {}
struct Guard<T> {
value: ManuallyDrop<T>,
}
impl<T: Foo> Guard<T> {
fn uwu(&self) {
let x: &dyn Foo = &*self.value;
}
}
fn main() {}