about summary refs log tree commit diff
path: root/tests/ui/deprecation/deprecated-expr-precedence.stderr
blob: 3275f2e790aeb0ad77f5a0e42a494810a351a079 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: mismatched types
  --> $DIR/deprecated-expr-precedence.rs:6:19
   |
LL | pub fn public() {
   |                - help: try adding a return type: `-> i32`
LL |     #[deprecated] 0
   |                   ^ expected `()`, found integer

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.