11error[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
33 |
44LL | let mut st = String::from("world");
55 | ^^^^^^
66
77error[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
99 |
1010LL | let _: &u8 = x.as_ref();
1111 | ^^^^^^ method cannot be called on `&u8` due to unsatisfied trait bounds
@@ -15,7 +15,7 @@ LL | let _: &u8 = x.as_ref();
1515 which is required by `&u8: AsRef<_>`
1616
1717error[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
1919 |
2020LL | let _: &mut u8 = ym.as_mut();
2121 | ^^^^^^ method cannot be called on `&mut u8` due to unsatisfied trait bounds
@@ -25,13 +25,13 @@ LL | let _: &mut u8 = ym.as_mut();
2525 which is required by `&mut u8: AsMut<_>`
2626
2727error[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
2929 |
3030LL | let _: &[u8] = arr.as_ref();
3131 | ^^^^^^
3232
3333error[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
3535 |
3636LL | let _: &mut [u8] = arr2.as_mut();
3737 | ^^^^^^
0 commit comments