]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/wf-trait-bound.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / wf / wf-trait-bound.rs
1 // Test that we check supertrait 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,U>
10     where T: ExtraCopy<U> //~ ERROR E0277
11 {
12 }
13
14
15 fn main() { }