]> git.lizzy.rs Git - rust.git/blob - tests/ui/block-result/issue-5500.stderr
Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk
[rust.git] / tests / ui / block-result / issue-5500.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-5500.rs:2:5
3    |
4 LL | fn main() {
5    |           - expected `()` because of default return type
6 LL |     &panic!()
7    |     ^^^^^^^^^ expected `()`, found reference
8    |
9    = note: expected unit type `()`
10               found reference `&_`
11 help: consider removing the borrow
12    |
13 LL -     &panic!()
14 LL +     panic!()
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.