mask extra borrowck errors (should find out how to not report those)

This commit is contained in:
Niko Matsakis 2012-06-04 12:31:25 -07:00
parent 8ebbf464f5
commit dd37c0a41e

View file

@ -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
}