]> git.lizzy.rs Git - rust.git/blob - tests/ui/terr-sorts.rs
Auto merge of #107197 - aliemjay:patch-2, r=jackh726
[rust.git] / tests / ui / terr-sorts.rs
1 struct Foo {
2     a: isize,
3     b: isize,
4 }
5
6 type Bar = Box<Foo>;
7
8 fn want_foo(f: Foo) {}
9 fn have_bar(b: Bar) {
10     want_foo(b); //~  ERROR mismatched types
11                  //~| expected struct `Foo`
12                  //~| found struct `Box<Foo>`
13 }
14
15 fn main() {}