mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 04:24:41 +00:00
14 lines
177 B
Rust
14 lines
177 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);
|
|
}
|