Handle Sized? in type items.
Resolves bounds for `type` and adds the warning for 'unbounds' (? bounds) that we have for bounds. Closes #16888
This commit is contained in:
parent
0c73e5fc5f
commit
b1916288bf
3 changed files with 7 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ struct S1<Sized? X>;
|
|||
enum E<Sized? X> {}
|
||||
impl <Sized? X> T1 for S1<X> {}
|
||||
fn f<Sized? X>() {}
|
||||
type TT<Sized? T> = T;
|
||||
|
||||
pub fn main() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue