mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
190589f8a7
When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`. |
||
---|---|---|
.. | ||
dst-bad-assign-2.rs | ||
dst-bad-assign-2.stderr | ||
dst-bad-assign-3.rs | ||
dst-bad-assign-3.stderr | ||
dst-bad-assign.rs | ||
dst-bad-assign.stderr | ||
dst-bad-coerce1.rs | ||
dst-bad-coerce1.stderr | ||
dst-bad-coerce2.rs | ||
dst-bad-coerce2.stderr | ||
dst-bad-coerce3.rs | ||
dst-bad-coerce3.stderr | ||
dst-bad-coerce4.rs | ||
dst-bad-coerce4.stderr | ||
dst-bad-coercions.rs | ||
dst-bad-coercions.stderr | ||
dst-bad-deep-2.rs | ||
dst-bad-deep-2.stderr | ||
dst-bad-deep.rs | ||
dst-bad-deep.stderr | ||
dst-index.rs | ||
dst-index.stderr | ||
dst-object-from-unsized-type.rs | ||
dst-object-from-unsized-type.stderr | ||
dst-rvalue.rs | ||
dst-rvalue.stderr | ||
dst-sized-trait-param.rs | ||
dst-sized-trait-param.stderr |