1
Fork 0

librustc: Remove &const and *const from the language.

They are still present as part of the borrow check.
This commit is contained in:
Patrick Walton 2013-08-02 21:41:06 -07:00
parent 58d6eb5048
commit 5c3504799d
48 changed files with 309 additions and 460 deletions

View file

@ -26,13 +26,6 @@ fn matcher2(x: opts) {
}
}
fn matcher3(x: opts) {
match x {
a(ref mut i) | b(ref const i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
c(_) => {}
}
}
fn matcher4(x: opts) {
match x {
a(ref mut i) | b(ref i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1