]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/invalid-bin-op.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / invalid-bin-op.rs
1 pub fn foo<T>(s: S<T>, t: S<T>) {
2     let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `S<T>`
3 }
4
5 struct S<T>(T);
6
7 fn main() {}