Skip to content

Commit 449dfc6

Browse files
committed
Fix unquoted projection types in label
1 parent d868357 commit 449dfc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'tcx> TypeError<'tcx> {
195195
)
196196
.into(),
197197
ProjectionMismatched(ref values) => format!(
198-
"expected {}, found {}",
198+
"expected `{}`, found `{}`",
199199
tcx.def_path_str(values.expected),
200200
tcx.def_path_str(values.found)
201201
)

tests/ui/generic-associated-types/collections-project-default.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fn floatify_sibling<C>(ints: &C) -> <C as Collection<i32>>::Sibling<f32>
55
| ------------------------------------ expected `<C as Collection<i32>>::Sibling<f32>` because of return type
66
...
77
LL | res
8-
| ^^^ expected Collection::Sibling, found CollectionFamily::Member
8+
| ^^^ expected `Collection::Sibling`, found `CollectionFamily::Member`
99
|
1010
= note: expected associated type `<C as Collection<i32>>::Sibling<f32>`
1111
found associated type `<<C as Collection<i32>>::Family as CollectionFamily>::Member<f32>`

0 commit comments

Comments
 (0)