rust/tests/ui/traits/next-solver/destruct.rs
2024-02-16 20:02:50 +00:00

14 lines
179 B
Rust

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