diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-06-04 12:31:25 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-06-06 18:42:06 -0700 |
| commit | dd37c0a41e3c695886fb2f3c33f7fee6675822aa (patch) | |
| tree | bec3319c263c71b2c26127a6eaead73541089568 | |
| parent | 8ebbf464f59f3a400de91d7afac0c254e3346c72 (diff) | |
| download | rust-dd37c0a41e3c695886fb2f3c33f7fee6675822aa.tar.gz rust-dd37c0a41e3c695886fb2f3c33f7fee6675822aa.zip | |
mask extra borrowck errors (should find out how to not report those)
| -rw-r--r-- | src/test/compile-fail/issue-511.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/issue-511.rs b/src/test/compile-fail/issue-511.rs index 793bb48c79a..40d25a37566 100644 --- a/src/test/compile-fail/issue-511.rs +++ b/src/test/compile-fail/issue-511.rs @@ -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 } \ No newline at end of file |
