1
1
error[E0277]: the trait bound `String: const From<&str>` is not satisfied
2
- --> $DIR/const-from.rs:29 :18
2
+ --> $DIR/const-from.rs:28 :18
3
3
|
4
4
LL | let mut st = String::from("world");
5
5
| ^^^^^^
6
6
7
7
error[E0599]: the method `as_ref` exists for reference `&u8`, but its trait bounds were not satisfied
8
- --> $DIR/const-from.rs:34 :25
8
+ --> $DIR/const-from.rs:33 :25
9
9
|
10
10
LL | let _: &u8 = x.as_ref();
11
11
| ^^^^^^ method cannot be called on `&u8` due to unsatisfied trait bounds
@@ -15,7 +15,7 @@ LL | let _: &u8 = x.as_ref();
15
15
which is required by `&u8: AsRef<_>`
16
16
17
17
error[E0599]: the method `as_mut` exists for mutable reference `&mut u8`, but its trait bounds were not satisfied
18
- --> $DIR/const-from.rs:38 :26
18
+ --> $DIR/const-from.rs:37 :26
19
19
|
20
20
LL | let _: &mut u8 = ym.as_mut();
21
21
| ^^^^^^ method cannot be called on `&mut u8` due to unsatisfied trait bounds
@@ -25,13 +25,13 @@ LL | let _: &mut u8 = ym.as_mut();
25
25
which is required by `&mut u8: AsMut<_>`
26
26
27
27
error[E0277]: the trait bound `[u8; 3]: const AsRef<[u8]>` is not satisfied
28
- --> $DIR/const-from.rs:42 :24
28
+ --> $DIR/const-from.rs:41 :24
29
29
|
30
30
LL | let _: &[u8] = arr.as_ref();
31
31
| ^^^^^^
32
32
33
33
error[E0277]: the trait bound `[u8; 3]: const AsMut<[u8]>` is not satisfied
34
- --> $DIR/const-from.rs:45 :29
34
+ --> $DIR/const-from.rs:44 :29
35
35
|
36
36
LL | let _: &mut [u8] = arr2.as_mut();
37
37
| ^^^^^^
0 commit comments