Rollup merge of #130440 - compiler-errors:rpitit-opaque-hidden, r=jieyouxu
Don't ICE in `opaque_hidden_inferred_bound` lint for RPITIT in trait with no default method body Inline comment should explain the fix. Fixes #130422
This commit is contained in:
commit
02b1776cd3
2 changed files with 28 additions and 0 deletions
16
tests/ui/impl-trait/opaque-hidden-inferred-rpitit.rs
Normal file
16
tests/ui/impl-trait/opaque-hidden-inferred-rpitit.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//@ check-pass
|
||||
|
||||
// Make sure that the `opaque_hidden_inferred_bound` lint doesn't fire on
|
||||
// RPITITs with no hidden type.
|
||||
|
||||
trait T0 {}
|
||||
|
||||
trait T1 {
|
||||
type A: Send;
|
||||
}
|
||||
|
||||
trait T2 {
|
||||
fn foo() -> impl T1<A = ((), impl T0)>;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue