diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-03 06:54:21 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-08-03 07:01:49 +0000 |
| commit | 2a3fd5053f9cd5897c4a5eed2b742699aab279a4 (patch) | |
| tree | d244ef54c37c92210153263de9ef587a42a06e67 /src/test | |
| parent | 4df6cbe96fe3e356aff89155f58a497d48bc78ee (diff) | |
| download | rust-2a3fd5053f9cd5897c4a5eed2b742699aab279a4.tar.gz rust-2a3fd5053f9cd5897c4a5eed2b742699aab279a4.zip | |
Don't suggest field method if it's just missing some bounds
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/hrtb/issue-30786.stderr | 8 | ||||
| -rw-r--r-- | src/test/ui/union/union-derive-clone.mirunsafeck.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/union/union-derive-clone.thirunsafeck.stderr | 4 |
3 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/hrtb/issue-30786.stderr b/src/test/ui/hrtb/issue-30786.stderr index bc7b5e914e1..ffe3d7b81f5 100644 --- a/src/test/ui/hrtb/issue-30786.stderr +++ b/src/test/ui/hrtb/issue-30786.stderr @@ -18,10 +18,6 @@ note: the following trait bounds were not satisfied: | LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {} | --------- - ^^^^^^ unsatisfied trait bound introduced here -help: one of the expressions' fields has a method of the same name - | -LL | let filter = map.stream.filterx(|x: &_| true); - | +++++++ error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>`, but its trait bounds were not satisfied --> $DIR/issue-30786.rs:130:24 @@ -43,10 +39,6 @@ note: the following trait bounds were not satisfied: | LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {} | --------- - ^^^^^^ unsatisfied trait bound introduced here -help: one of the expressions' fields has a method of the same name - | -LL | let count = filter.stream.countx(); - | +++++++ error: aborting due to 2 previous errors diff --git a/src/test/ui/union/union-derive-clone.mirunsafeck.stderr b/src/test/ui/union/union-derive-clone.mirunsafeck.stderr index 44c9d4a8438..148fb504670 100644 --- a/src/test/ui/union/union-derive-clone.mirunsafeck.stderr +++ b/src/test/ui/union/union-derive-clone.mirunsafeck.stderr @@ -42,10 +42,6 @@ help: consider annotating `CloneNoCopy` with `#[derive(Clone, Copy)]` | LL | #[derive(Clone, Copy)] | -help: one of the expressions' fields has a method of the same name - | -LL | let w = u.a.clone(); - | ++ error: aborting due to 2 previous errors diff --git a/src/test/ui/union/union-derive-clone.thirunsafeck.stderr b/src/test/ui/union/union-derive-clone.thirunsafeck.stderr index 44c9d4a8438..148fb504670 100644 --- a/src/test/ui/union/union-derive-clone.thirunsafeck.stderr +++ b/src/test/ui/union/union-derive-clone.thirunsafeck.stderr @@ -42,10 +42,6 @@ help: consider annotating `CloneNoCopy` with `#[derive(Clone, Copy)]` | LL | #[derive(Clone, Copy)] | -help: one of the expressions' fields has a method of the same name - | -LL | let w = u.a.clone(); - | ++ error: aborting due to 2 previous errors |
