mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
240 B
Rust
15 lines
240 B
Rust
// Test that we check associated type default values for WFedness.
|
|
|
|
#![feature(associated_type_defaults)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
trait SomeTrait<'a> {
|
|
type Type1;
|
|
type Type2 = &'a Self::Type1;
|
|
//~^ ERROR E0309
|
|
}
|
|
|
|
|
|
fn main() { }
|