File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/try/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 8ebbf464f59f3a400de91d7afac0c254e3346c72
5
+ refs/heads/try: dd37c0a41e3c695886fb2f3c33f7fee6675822aa
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ fn f<T>(&o: option<T>) {
8
8
fn main ( ) {
9
9
f :: < int > ( option:: none) ;
10
10
//!^ ERROR taking mut reference to static item
11
- //!^^ ERROR illegal borrow unless pure: creating mutable alias to aliasable, immutable memory
12
- //!^^^ NOTE impure due to access to impure function
11
+
12
+ // Additional errors reported by borrowck:
13
+ //^^ ERROR illegal borrow unless pure: creating mutable alias to aliasable, immutable memory
14
+ //^^^ NOTE impure due to access to impure function
13
15
}
You can’t perform that action at this time.
0 commit comments