Rollup merge of #108337 - tshepang:translatable-hir-analysis, r=cjgillot
hir-analysis: make a helpful note
This commit is contained in:
commit
b27f37da07
3 changed files with 4 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ error: `main` function is not allowed to be `#[track_caller]`
|
|||
--> $DIR/error-with-main.rs:1:1
|
||||
|
|
||||
LL | #[track_caller]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^ help: remove this annotation
|
||||
LL | fn main() {
|
||||
| --------- `main` function is not allowed to be `#[track_caller]`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue