]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-trait-associated-type-trait.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / wf / wf-trait-associated-type-trait.rs
1 // Test that we check associated type default values for WFedness.
2
3 #![feature(associated_type_defaults)]
4
5 #![allow(dead_code)]
6
7 struct IsCopy<T:Copy> { x: T }
8
9 trait SomeTrait {
10     type Type1;
11     type Type2 = (IsCopy<Self::Type1>, bool);
12     //~^ ERROR E0277
13 }
14
15
16 fn main() { }