Rollup merge of #108337 - tshepang:translatable-hir-analysis, r=cjgillot

hir-analysis: make a helpful note
This commit is contained in:
Matthias Krüger 2023-02-26 12:04:58 +01:00 committed by GitHub
commit b27f37da07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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]`