diff options
| author | Christopher Vittal <christopher.vittal@gmail.com> | 2017-11-14 20:07:53 -0500 |
|---|---|---|
| committer | Christopher Vittal <christopher.vittal@gmail.com> | 2017-11-15 15:46:01 -0500 |
| commit | f710d41f77853279832880cc9b3e01ea141daac9 (patch) | |
| tree | 18d40e3a4ac8468a178f6eff1bf3361751095cf7 | |
| parent | b27642973421c6c4e588b4a2d12c7120c4c21176 (diff) | |
| download | rust-f710d41f77853279832880cc9b3e01ea141daac9.tar.gz rust-f710d41f77853279832880cc9b3e01ea141daac9.zip | |
Add/Fix stderr references for impl Trait ui tests
| -rw-r--r-- | src/test/ui/impl-trait/universal-mismatched-type.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/impl-trait/universal_wrong_bounds.stderr | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/src/test/ui/impl-trait/universal-mismatched-type.stderr b/src/test/ui/impl-trait/universal-mismatched-type.stderr index 7f206846ad1..2be24584497 100644 --- a/src/test/ui/impl-trait/universal-mismatched-type.stderr +++ b/src/test/ui/impl-trait/universal-mismatched-type.stderr @@ -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 diff --git a/src/test/ui/impl-trait/universal_wrong_bounds.stderr b/src/test/ui/impl-trait/universal_wrong_bounds.stderr new file mode 100644 index 00000000000..5e7788812e6 --- /dev/null +++ b/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 + |
