diff options
Diffstat (limited to 'tests/ui/missing-trait-bounds/issue-35677.fixed')
-rw-r--r-- | tests/ui/missing-trait-bounds/issue-35677.fixed | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/missing-trait-bounds/issue-35677.fixed b/tests/ui/missing-trait-bounds/issue-35677.fixed new file mode 100644 index 000000000..08174d8d8 --- /dev/null +++ b/tests/ui/missing-trait-bounds/issue-35677.fixed @@ -0,0 +1,11 @@ +// run-rustfix +#![allow(dead_code)] +use std::collections::HashSet; +use std::hash::Hash; + +fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash { + this.is_subset(other) + //~^ ERROR the method +} + +fn main() {} |