]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/restrict-type-not-param.rs
Auto merge of #103690 - GuillaumeGomez:visibility-on-demand, r=notriddle
[rust.git] / src / test / ui / suggestions / restrict-type-not-param.rs
1 use std::ops::Add;
2
3 struct Wrapper<T>(T);
4
5 trait Foo {}
6
7 fn qux<T>(a: Wrapper<T>, b: T) -> T {
8     a + b
9     //~^ ERROR cannot add `T` to `Wrapper<T>`
10 }
11
12 fn main() {}