librustc: Remove &const
and *const
from the language.
They are still present as part of the borrow check.
This commit is contained in:
parent
58d6eb5048
commit
5c3504799d
48 changed files with 309 additions and 460 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue