]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/invalid-bin-op.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / 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() {}