diag: guide parameter mutability and explicit array slice arguments
This commit is contained in:
1 parent
6a02659f31
commit
9549a3dec6
22 files changed
+197
-4
No files matched your search
@@ -0,0 +1,6 @@
|
||||
// expect: reject E7001
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §4/§5/§10; docs/reference/error-codes.md
|
||||
module probe
|
||||
fn f(mut x: u8) -> void effects [] {}
|
||||
fn main() -> void effects [] {}
|
||||
Reference in new issue
Block a user