diff options
| author | bors <bors@rust-lang.org> | 2019-02-25 03:48:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-25 03:48:12 +0000 |
| commit | c1911babed0364ede7dedc646dbca63fac03d5c5 (patch) | |
| tree | a7f6a7d6a44bcafa523052938587718261c4da15 /src/test | |
| parent | eb1df8c8a7b368c31c3bf58074327c7ae7f54710 (diff) | |
| parent | 6806d0cf692edf9aa308cc841c81afbfc83c03bf (diff) | |
| download | rust-c1911babed0364ede7dedc646dbca63fac03d5c5.tar.gz rust-c1911babed0364ede7dedc646dbca63fac03d5c5.zip | |
Auto merge of #58714 - Centril:rollup, r=Centril
Rollup of 5 pull requests Successful merges: - #58370 (Relax some Hash bounds on HashMap<K, V, S> and HashSet<T, S>) - #58421 (Relax some Ord bounds on BinaryHeap<T>) - #58686 (replace deprecated rustfmt_skip with rustfmt::skip) - #58697 (Use ? in some macros) - #58704 (Remove some unnecessary 'extern crate') Failed merges: r? @ghost
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/issues/issue-35677.rs | 7 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-35677.stderr | 14 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/test/ui/issues/issue-35677.rs b/src/test/ui/issues/issue-35677.rs index 71e2125ffd2..ba2d503d7fc 100644 --- a/src/test/ui/issues/issue-35677.rs +++ b/src/test/ui/issues/issue-35677.rs @@ -1,6 +1,7 @@ -use std::collections::HashMap; -fn intersect_map<K, V>(this: &mut HashMap<K, V>, other: HashMap<K, V>) -> bool { - this.drain() +use std::collections::HashSet; + +fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool { + this.is_subset(other) //~^ ERROR no method named } diff --git a/src/test/ui/issues/issue-35677.stderr b/src/test/ui/issues/issue-35677.stderr index 61ddb75b3b5..99d99db93f3 100644 --- a/src/test/ui/issues/issue-35677.stderr +++ b/src/test/ui/issues/issue-35677.stderr @@ -1,12 +1,12 @@ -error[E0599]: no method named `drain` found for type `&mut std::collections::HashMap<K, V>` in the current scope - --> $DIR/issue-35677.rs:3:10 +error[E0599]: no method named `is_subset` found for type `&std::collections::HashSet<T>` in the current scope + --> $DIR/issue-35677.rs:4:10 | -LL | this.drain() - | ^^^^^ +LL | this.is_subset(other) + | ^^^^^^^^^ | - = note: the method `drain` exists but the following trait bounds were not satisfied: - `K : std::cmp::Eq` - `K : std::hash::Hash` + = note: the method `is_subset` exists but the following trait bounds were not satisfied: + `T : std::cmp::Eq` + `T : std::hash::Hash` error: aborting due to previous error |
