]> git.proxmox.com Git - rustc.git/blame - tests/ui/terr-in-field.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / terr-in-field.rs
CommitLineData
0731742a 1struct Foo {
1a4d82fc
JJ
2 a: isize,
3 b: isize,
223e47cc
LB
4}
5
0731742a 6struct Bar {
1a4d82fc
JJ
7 a: isize,
8 b: usize,
223e47cc
LB
9}
10
0731742a
XL
11fn want_foo(f: Foo) {}
12fn have_bar(b: Bar) {
85aaf69f 13 want_foo(b); //~ ERROR mismatched types
9ffffee4 14 //~| expected `Foo`, found `Bar`
223e47cc
LB
15}
16
17fn main() {}