-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This introduces some FNs. But a building Clippy is more important for now
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,11 @@ fn random_caller() -> u32 { | |
|
||
static Y: u32 = 0; | ||
|
||
// We should not suggest to make this function `const` because const functions are not allowed to | ||
// refer to a static variable | ||
fn get_y() -> u32 { | ||
Y | ||
//~^ ERROR E0013 | ||
This comment was marked as off-topic.
Sorry, something went wrong.
oli-obk
Contributor
|
||
} | ||
|
||
// Don't lint entrypoint functions | ||
|
Leave a comment as to why we use this