File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ error[E0599]: no method named `bind` found for type `[&str; 1]` in the current s
1010 --> $DIR/issue-2149.rs:13:12
1111 |
1212LL | ["hi"].bind(|x| [x] );
13- | ^^^^
13+ | ^^^^ help: did you mean: `find`
1414 |
1515 = help: items from traits can only be used if the trait is implemented and in scope
1616 = note: the following trait defines an item `bind`, perhaps you need to implement it:
Original file line number Diff line number Diff line change 11fn foo ( ) -> bool {
2- b"" . starts_with ( stringify ! ( foo) )
2+ b"" . eq_ignore_ascii_case ( stringify ! ( foo) )
33 //~^ ERROR mismatched types
44}
55
Original file line number Diff line number Diff line change 11error[E0308]: mismatched types
2- --> $DIR/issue-48364.rs:2:21
2+ --> $DIR/issue-48364.rs:2:30
33 |
4- LL | b"".starts_with (stringify!(foo))
5- | ^^^^^^^^^^^^^^^ expected slice, found str
4+ LL | b"".eq_ignore_ascii_case (stringify!(foo))
5+ | ^^^^^^^^^^^^^^^ expected slice, found str
66 |
77 = note: expected type `&[u8]`
88 found type `&'static str`
You can’t perform that action at this time.
0 commit comments