2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2020-01-06 08:51:23 -06:00
|
|
|
#![allow(non_camel_case_types)]
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2020-01-06 08:51:23 -06:00
|
|
|
|
2017-10-15 05:58:32 -05:00
|
|
|
trait Foo {
|
|
|
|
type bar;
|
|
|
|
fn bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
|
|
|
type bar = ();
|
|
|
|
fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x: <() as Foo>::bar = ();
|
|
|
|
<()>::bar();
|
|
|
|
}
|