]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/issue-73886.stderr
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
[rust.git] / src / test / ui / coercion / issue-73886.stderr
1 error[E0605]: non-primitive cast: `&&[i32; 1]` as `&[_]`
2   --> $DIR/issue-73886.rs:2:13
3    |
4 LL |     let _ = &&[0] as &[_];
5    |             ^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
6
7 error[E0605]: non-primitive cast: `u32` as `Option<_>`
8   --> $DIR/issue-73886.rs:4:13
9    |
10 LL |     let _ = 7u32 as Option<_>;
11    |             ^^^^^^^^^^^^^^^^^ help: consider using the `From` trait instead: `Option<_>::from(7u32)`
12    |
13    = note: an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0605`.