mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
a9841936fe
Change the implicit `Sized` `Obligation` `Span` for call expressions to include the whole expression. This aids the existing deduplication machinery to reduce the number of errors caused by a single unsized expression.
21 lines
614 B
Plaintext
21 lines
614 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/obligation-cause.rs:20:5
|
|
|
|
|
LL | g::<usize>();
|
|
| ^^^^^^^^^^^^ expected `false`, found `true`
|
|
|
|
|
= note: expected constant `false`
|
|
found constant `true`
|
|
note: required by a bound in `g`
|
|
--> $DIR/obligation-cause.rs:13:44
|
|
|
|
|
LL | fn g<T>()
|
|
| - required by a bound in this function
|
|
...
|
|
LL | Is<{ std::mem::size_of::<T>() == 0 }>: True,
|
|
| ^^^^ required by this bound in `g`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|