]> git.proxmox.com Git - rustc.git/blob - tests/ui/wf/wf-trait-associated-type-bound.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / wf / wf-trait-associated-type-bound.rs
1 // Test that we check associated type bounds for WFedness.
2
3 #![feature(associated_type_defaults)]
4
5 #![allow(dead_code)]
6
7 trait ExtraCopy<T:Copy> { }
8
9 trait SomeTrait<T> {
10 type Type1: ExtraCopy<T>; //~ ERROR E0277
11 }
12
13
14 fn main() { }