blob: b665af25b51ff5a0e0a3e56c6bca6832da3b507f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
pub struct Bar(i32);
#[lang = "sized"]
trait Sized {}
pub trait A: Sized {
fn foo() -> Self;
}
impl A for i32 {
fn foo() -> Self {
0
}
}
pub fn bar() {
let _ = Bar(A::foo());
}
|