diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-10-27 13:42:20 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-11-16 13:23:19 -0800 |
| commit | 7a2f3ee73f6286744ff7b36324ddb9fb5dca62ac (patch) | |
| tree | 69bdac588f859afdff37a85c4fcb25e89459be86 /src/test/ui/suggestions | |
| parent | 0f7f2346a688466624d10bfa8310b8d6aedd0ede (diff) | |
| download | rust-7a2f3ee73f6286744ff7b36324ddb9fb5dca62ac.tar.gz rust-7a2f3ee73f6286744ff7b36324ddb9fb5dca62ac.zip | |
Account for `rustc_on_unimplemented`
Diffstat (limited to 'src/test/ui/suggestions')
| -rw-r--r-- | src/test/ui/suggestions/issue-62843.stderr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/suggestions/issue-62843.stderr b/src/test/ui/suggestions/issue-62843.stderr index 1e0ae9bd062..3b7f85c5668 100644 --- a/src/test/ui/suggestions/issue-62843.stderr +++ b/src/test/ui/suggestions/issue-62843.stderr @@ -1,4 +1,4 @@ -error[E0277]: the trait bound `std::string::String: std::str::pattern::Pattern<'_>` is not satisfied +error[E0277]: expected a `std::ops::FnMut<(char,)>` closure, found `std::string::String` --> $DIR/issue-62843.rs:4:32 | LL | println!("{:?}", line.find(pattern)); @@ -7,6 +7,7 @@ LL | println!("{:?}", line.find(pattern)); | expected an implementor of trait `std::str::pattern::Pattern<'_>` | help: consider borrowing here: `&pattern` | + = note: the trait bound `std::string::String: std::str::pattern::Pattern<'_>` is not satisfied = note: required because of the requirements on the impl of `std::str::pattern::Pattern<'_>` for `std::string::String` error: aborting due to previous error |
