]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/restrict-type-not-param.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / 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() {}