8 lines
91 B
Plaintext
8 lines
91 B
Plaintext
// ERROR:6:reference
|
|
unit badret;
|
|
|
|
fn bad() -> &i32 {
|
|
let x: i32 = 1;
|
|
return &x;
|
|
}
|