blob: 30d7777b78aa004bd0893cdbe5134733c4a1b2ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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);
}
|