rust/tests/ui/traits/new-solver/destruct.rs

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

14 lines
183 B
Rust
Raw Normal View History

// compile-flags: -Ztrait-solver=next
// check-pass
#![feature(const_trait_impl)]
fn foo(_: impl std::marker::Destruct) {}
struct MyAdt;
fn main() {
foo(1);
foo(MyAdt);
}