]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-trait-superbound.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / wf / wf-trait-superbound.rs
1 // Test that we check supertrait bounds for WFedness.
2
3 #![feature(associated_type_defaults)]
4 #![feature(rustc_attrs)]
5 #![allow(dead_code)]
6
7 trait ExtraCopy<T:Copy> { }
8
9 trait SomeTrait<T>: ExtraCopy<T> { //~ ERROR E0277
10 }
11
12 fn main() { }