diff options
| author | Ohad Ravid <ohad.rv@gmail.com> | 2019-10-30 16:53:41 +0100 |
|---|---|---|
| committer | Ohad Ravid <ohad.rv@gmail.com> | 2019-10-31 09:30:14 +0100 |
| commit | 8bb54501280eba814b31628db1088ca4f03638e1 (patch) | |
| tree | f4a6d30029670a446da8319234f9cf6413d12e64 /src/test/ui/error-codes | |
| parent | c553e8e8812c19809e70523064989e66c5cfd3f1 (diff) | |
Fix incorrect diagnostics for expected type in E0271 with an associated type
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0271.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0271.stderr b/src/test/ui/error-codes/E0271.stderr index c56853f45a0..378e5e36306 100644 --- a/src/test/ui/error-codes/E0271.stderr +++ b/src/test/ui/error-codes/E0271.stderr @@ -5,10 +5,10 @@ LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { | --- ------------------ required by this bound in `foo` ... LL | foo(3_i8); - | ^^^ expected reference, found u32 + | ^^^ expected u32, found reference | - = note: expected type `&'static str` - found type `u32` + = note: expected type `u32` + found type `&'static str` error: aborting due to previous error |
