Skip to content

Commit

Permalink
Add/Fix stderr references for impl Trait ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed Nov 15, 2017
1 parent b276429 commit f710d41
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/impl-trait/universal-mismatched-type.stderr
Expand Up @@ -7,7 +7,7 @@ error[E0308]: mismatched types
| ^ expected struct `std::string::String`, found type parameter
|
= note: expected type `std::string::String`
found type ``
found type `impl Debug`

error: aborting due to previous error

30 changes: 30 additions & 0 deletions src/test/ui/impl-trait/universal_wrong_bounds.stderr
@@ -0,0 +1,30 @@
error[E0425]: cannot find function `wants_clone` in this scope
--> $DIR/universal_wrong_bounds.rs:18:5
|
18 | wants_clone(f);
| ^^^^^^^^^^^ did you mean `wants_cone`?

error[E0405]: cannot find trait `Debug` in this scope
--> $DIR/universal_wrong_bounds.rs:21:24
|
21 | fn wants_debug(g: impl Debug) { }
| ^^^^^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::fmt::Debug;
|

error[E0405]: cannot find trait `Debug` in this scope
--> $DIR/universal_wrong_bounds.rs:22:26
|
22 | fn wants_display(g: impl Debug) { }
| ^^^^^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::fmt::Debug;
|

error: cannot continue compilation due to previous error

0 comments on commit f710d41

Please sign in to comment.