about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-debug.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-19 16:00:51 +0200
committerGitHub <noreply@github.com>2019-10-19 16:00:51 +0200
commit7e4ff91403dd4752cc643e9dff55d93076e4802c (patch)
treee16ec2df278bb50ca2d3e2d48ceb7157cbf3b8bb /src/test/ui/iterators/iter-sum-overflow-debug.rs
parent53a3bfc82bb962b4b604d489646567714fe4e2a2 (diff)
parentc6dce7802dc49a2e4b6049ad8971ba6f18252e64 (diff)
downloadrust-7e4ff91403dd4752cc643e9dff55d93076e4802c.tar.gz
rust-7e4ff91403dd4752cc643e9dff55d93076e4802c.zip
Rollup merge of #65192 - estebank:restrict-bound, r=matthewjasper
Use structured suggestion for restricting bounds

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)`. Fix #64565, fix #41817, fix #24354,
cc #26026, cc #37808, cc #24159, fix #37138, fix #24354, cc #20671.
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions