Skip to content

Commit

Permalink
fix various error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Apr 12, 2016
1 parent 47d3b80 commit 2c9dfaf
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/test/compile-fail/derived-errors/issue-31997-1.rs
Expand Up @@ -29,7 +29,6 @@ fn main() {

let mut map = HashMap::new();
//~^ ERROR E0433
//~| ERROR E0425

for line in input.lines() {
let line = line.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-13853.rs
Expand Up @@ -35,7 +35,7 @@ impl Node for Stuff {

fn iterate<N: Node, G: Graph<N>>(graph: &G) {
for node in graph.iter() { //~ ERROR no method named `iter` found
node.zomg(); //~ error: the type of this value must be known in this context
node.zomg();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-19692.rs
Expand Up @@ -12,7 +12,7 @@ struct Homura;

fn akemi(homura: Homura) {
let Some(ref madoka) = Some(homura.kaname()); //~ ERROR no method named `kaname` found
madoka.clone(); //~ ERROR the type of this value must be known
madoka.clone();
}

fn main() { }
1 change: 0 additions & 1 deletion src/test/compile-fail/issue-20261.rs
Expand Up @@ -11,6 +11,5 @@
fn main() {
for (ref i,) in [].iter() { //~ ERROR mismatched types
i.clone();
//~^ ERROR: the type of this value must be known in this context
}
}
3 changes: 2 additions & 1 deletion src/test/compile-fail/issue-26480.rs
Expand Up @@ -30,7 +30,7 @@ macro_rules! write {
}

macro_rules! cast {
($x:expr) => ($x as ())
($x:expr) => ($x as ()) //~ ERROR non-scalar cast
}

fn main() {
Expand All @@ -39,4 +39,5 @@ fn main() {
//~^ NOTE in this expansion of write!

cast!(2);
//~^ NOTE in this expansion of cast!
}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-3973.rs
Expand Up @@ -31,5 +31,5 @@ impl ToString_ for Point {
fn main() {
let p = Point::new(0.0, 0.0);
//~^ ERROR no associated item named `new` found for type `Point` in the current scope
println!("{}", p.to_string()); //~ ERROR type of this value must be known
println!("{}", p.to_string());
}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-7092.rs
Expand Up @@ -19,7 +19,7 @@ fn foo(x: Whatever) {
//~| found `std::option::Option<_>`
//~| expected enum `Whatever`
//~| found enum `std::option::Option`
field.access(), //~ ERROR the type of this value must be known in this context
field.access(),
}
}

Expand Down

0 comments on commit 2c9dfaf

Please sign in to comment.