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:
Nick Cameron 2014-09-09 18:22:20 +12:00
parent 0c73e5fc5f
commit b1916288bf
3 changed files with 7 additions and 2 deletions

View file

@ -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() {
}