☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
issue-893.rs
☽
☼
gcc/testsuite/rust/compile/torture/issue-893.rs
code
plain
raw
1
// { dg-additional-options "-w" }
2
#[lang = "sized"]
3
pub trait Sized {}
4
5
struct Foo<T>(T);
6
impl<T> Foo<T> {
7
fn new<Y>(a: T, b: Y) -> Self {
8
Self(a)
9
}
10
}
11
12
pub fn test() {
13
let a = Foo::<i32>::new::<f32>(123, 456f32);
14
}