mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
161 B
Rust
15 lines
161 B
Rust
|
//@ known-bug: #124189
|
||
|
trait Trait {
|
||
|
type Type;
|
||
|
}
|
||
|
|
||
|
impl<T> Trait for T {
|
||
|
type Type = ();
|
||
|
}
|
||
|
|
||
|
fn f(_: <&Copy as Trait>::Type) {}
|
||
|
|
||
|
fn main() {
|
||
|
f(());
|
||
|
}
|