]> git.proxmox.com Git - rustc.git/blame - src/test/ui/shift-various-bad-types.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / shift-various-bad-types.stderr
CommitLineData
b7449926 1error[E0277]: no implementation for `{integer} >> char`
0731742a 2 --> $DIR/shift-various-bad-types.rs:9:8
b7449926
XL
3 |
4LL | 22 >> p.char;
5 | ^^ no implementation for `{integer} >> char`
6 |
7 = help: the trait `std::ops::Shr<char>` is not implemented for `{integer}`
8
9error[E0277]: no implementation for `{integer} >> &str`
0731742a 10 --> $DIR/shift-various-bad-types.rs:12:8
b7449926
XL
11 |
12LL | 22 >> p.str;
13 | ^^ no implementation for `{integer} >> &str`
14 |
15 = help: the trait `std::ops::Shr<&str>` is not implemented for `{integer}`
16
17error[E0277]: no implementation for `{integer} >> &Panolpy`
0731742a 18 --> $DIR/shift-various-bad-types.rs:15:8
b7449926
XL
19 |
20LL | 22 >> p;
21 | ^^ no implementation for `{integer} >> &Panolpy`
22 |
23 = help: the trait `std::ops::Shr<&Panolpy>` is not implemented for `{integer}`
24
25error[E0308]: mismatched types
0731742a 26 --> $DIR/shift-various-bad-types.rs:25:18
b7449926
XL
27 |
28LL | let _: i32 = 22_i64 >> 1_i32;
60c5eb7d
XL
29 | --- ^^^^^^^^^^^^^^^ expected `i32`, found `i64`
30 | |
31 | expected due to this
e74abb32 32 |
48663c56
XL
33help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
34 |
35LL | let _: i32 = (22_i64 >> 1_i32).try_into().unwrap();
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
b7449926
XL
37
38error: aborting due to 4 previous errors
39
48663c56 40Some errors have detailed explanations: E0277, E0308.
b7449926 41For more information about an error, try `rustc --explain E0277`.