File tree 7 files changed +6
-7
lines changed
7 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ fn main() {
29
29
30
30
let mut map = HashMap :: new ( ) ;
31
31
//~^ ERROR E0433
32
- //~| ERROR E0425
33
32
34
33
for line in input. lines ( ) {
35
34
let line = line. unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl Node for Stuff {
35
35
36
36
fn iterate < N : Node , G : Graph < N > > ( graph : & G ) {
37
37
for node in graph. iter ( ) { //~ ERROR no method named `iter` found
38
- node. zomg ( ) ; //~ error: the type of this value must be known in this context
38
+ node. zomg ( ) ;
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ struct Homura;
12
12
13
13
fn akemi ( homura : Homura ) {
14
14
let Some ( ref madoka) = Some ( homura. kaname ( ) ) ; //~ ERROR no method named `kaname` found
15
- madoka. clone ( ) ; //~ ERROR the type of this value must be known
15
+ madoka. clone ( ) ;
16
16
}
17
17
18
18
fn main ( ) { }
Original file line number Diff line number Diff line change 11
11
fn main ( ) {
12
12
for ( ref i, ) in [ ] . iter ( ) { //~ ERROR mismatched types
13
13
i. clone ( ) ;
14
- //~^ ERROR: the type of this value must be known in this context
15
14
}
16
15
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ macro_rules! write {
30
30
}
31
31
32
32
macro_rules! cast {
33
- ( $x: expr) => ( $x as ( ) )
33
+ ( $x: expr) => ( $x as ( ) ) //~ ERROR non-scalar cast
34
34
}
35
35
36
36
fn main ( ) {
@@ -39,4 +39,5 @@ fn main() {
39
39
//~^ NOTE in this expansion of write!
40
40
41
41
cast ! ( 2 ) ;
42
+ //~^ NOTE in this expansion of cast!
42
43
}
Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ impl ToString_ for Point {
31
31
fn main ( ) {
32
32
let p = Point :: new ( 0.0 , 0.0 ) ;
33
33
//~^ ERROR no associated item named `new` found for type `Point` in the current scope
34
- println ! ( "{}" , p. to_string( ) ) ; //~ ERROR type of this value must be known
34
+ println ! ( "{}" , p. to_string( ) ) ;
35
35
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fn foo(x: Whatever) {
19
19
//~| found `std::option::Option<_>`
20
20
//~| expected enum `Whatever`
21
21
//~| found enum `std::option::Option`
22
- field. access ( ) , //~ ERROR the type of this value must be known in this context
22
+ field. access ( ) ,
23
23
}
24
24
}
25
25
You can’t perform that action at this time.
0 commit comments