mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
fix: add the HELP message
This commit is contained in:
@@ -8,4 +8,5 @@ enum Priority {
|
||||
fn main() {
|
||||
let priority = &Priority::Normal;
|
||||
let priority = priority as u8; //~ ERROR casting `&Priority` as `u8` is invalid
|
||||
//~| HELP: dereference the expression
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user