File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ mod tests {
207
207
208
208
#[ test]
209
209
fn type_id_hash ( ) {
210
- let ( a, b) = ( TypeId :: of :: < uint > ( ) , TypeId :: of:: < uint > :: ( ) ) ;
210
+ let ( a, b) = ( TypeId :: of :: < uint > ( ) , TypeId :: of :: < uint > ( ) ) ;
211
211
212
212
assert_eq ! ( a. hash( ) , b. hash( ) ) ;
213
213
}
Original file line number Diff line number Diff line change @@ -1470,10 +1470,6 @@ impl Parser {
1470
1470
let mut segments = ~[ ] ;
1471
1471
loop {
1472
1472
// First, parse an identifier.
1473
- match * self . token {
1474
- token:: IDENT ( * ) => { }
1475
- _ => break ,
1476
- }
1477
1473
let identifier = self . parse_ident ( ) ;
1478
1474
1479
1475
// Next, parse a colon and bounded type parameters, if applicable.
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // http://phpsadness.com/sad/1
12
+
13
+ fn main ( ) {
14
+ :: ; //~ ERROR expected ident, found `;`
15
+ }
You can’t perform that action at this time.
0 commit comments