File tree 3 files changed +5
-5
lines changed
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
10
10
--> $DIR/issue-2149.rs:13:12
11
11
|
12
12
LL | ["hi"].bind(|x| [x] );
13
- | ^^^^
13
+ | ^^^^ help: did you mean: `find`
14
14
|
15
15
= help: items from traits can only be used if the trait is implemented and in scope
16
16
= note: the following trait defines an item `bind`, perhaps you need to implement it:
Original file line number Diff line number Diff line change 1
1
fn foo ( ) -> bool {
2
- b"" . starts_with ( stringify ! ( foo) )
2
+ b"" . eq_ignore_ascii_case ( stringify ! ( foo) )
3
3
//~^ ERROR mismatched types
4
4
}
5
5
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> $DIR/issue-48364.rs:2:21
2
+ --> $DIR/issue-48364.rs:2:30
3
3
|
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
6
6
|
7
7
= note: expected type `&[u8]`
8
8
found type `&'static str`
You can’t perform that action at this time.
0 commit comments