]> git.lizzy.rs Git - rust.git/blob - src/test/ui/return/return-type.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / return / return-type.rs
1 struct S<T> {
2     t: T,
3 }
4
5 fn foo<T>(x: T) -> S<T> {
6     S { t: x }
7 }
8
9 fn bar() {
10     foo(4 as usize)
11     //~^ ERROR mismatched types
12 }
13
14 fn main() {}