mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
183 B
Rust
14 lines
183 B
Rust
// 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);
|
|
}
|