File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
}
31
31
```
32
32
33
- This preference is incorrect in case the builtin impl has a nested goal which relies on a where-clause.
33
+ This preference is incorrect in case the builtin impl has a nested goal which relies on a non-param where-clause
34
34
``` rust
35
35
struct MyType <'a , T : ? Sized >(& 'a (), T );
36
36
fn is_sized <T >() {}
39
39
(MyType <'a , T >,): Sized ,
40
40
MyType <'static , T >: Sized ,
41
41
{
42
- // The where-bound is trivial whihe builtin `Sized` impl for tuples
42
+ // The where-bound is trivial while the builtin `Sized` impl for tuples
43
43
// requires proving `MyType<'a, T>: Sized` which can only be proven by
44
44
// using the where-clause, adding an unnecessary `'static` constraint.
45
45
is_sized :: <(MyType <'a , T >,)>();
You can’t perform that action at this time.
0 commit comments