mask extra borrowck errors (should find out how to not report those)
This commit is contained in:
parent
8ebbf464f5
commit
dd37c0a41e
@ -8,6 +8,8 @@ fn f<T>(&o: option<T>) {
|
||||
fn main() {
|
||||
f::<int>(option::none);
|
||||
//!^ ERROR taking mut reference to static item
|
||||
//!^^ ERROR illegal borrow unless pure: creating mutable alias to aliasable, immutable memory
|
||||
//!^^^ NOTE impure due to access to impure function
|
||||
|
||||
// Additional errors reported by borrowck:
|
||||
//^^ ERROR illegal borrow unless pure: creating mutable alias to aliasable, immutable memory
|
||||
//^^^ NOTE impure due to access to impure function
|
||||
}
|
Loading…
Reference in New Issue
Block a user