2019-11-04 00:00:00 +00:00
|
|
|
//@ check-pass
|
2015-01-01 11:16:44 -05:00
|
|
|
// Check that associated types are `Sized`
|
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-01-01 11:16:44 -05:00
|
|
|
trait Trait {
|
|
|
|
|
type Output;
|
|
|
|
|
|
|
|
|
|
fn is_sized(&self) -> Self::Output;
|
|
|
|
|
fn wasnt_sized(&self) -> Self::Output { loop {} }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|