about summary refs log tree commit diff
path: root/tests/ui/issues/issue-20009.rs
blob: 4d091f3a962c64d4d23caf93ca966daa84879043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
// Check that associated types are `Sized`


trait Trait {
    type Output;

    fn is_sized(&self) -> Self::Output;
    fn wasnt_sized(&self) -> Self::Output { loop {} }
}

fn main() {}