error[E0308]: mismatched types --> $DIR/type-mismatch.rs:17:17 | LL | want::(f); | ----------- ^ expected struct `foo`, found `usize` | | | arguments to this function are incorrect | note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:18:17 | LL | want::(f); | ----------- ^ expected struct `bar`, found `usize` | | | arguments to this function are incorrect | note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:19:24 | LL | want::>(f); | ------------------ ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:20:27 | LL | want::>(f); | --------------------- ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:21:22 | LL | want::>(f); | ---------------- ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:22:25 | LL | want::>(f); | ------------------- ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:23:22 | LL | want::>(f); | ---------------- ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:24:25 | LL | want::>(f); | ------------------- ^ expected struct `Foo`, found `usize` | | | arguments to this function are incorrect | = note: expected struct `Foo` found type `usize` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:28:19 | LL | want::(f); | ------------- ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:29:17 | LL | want::(f); | ----------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:30:24 | LL | want::>(f); | ------------------ ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:31:27 | LL | want::>(f); | --------------------- ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:32:22 | LL | want::>(f); | ---------------- ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:33:25 | LL | want::>(f); | ------------------- ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:34:22 | LL | want::>(f); | ---------------- ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:35:25 | LL | want::>(f); | ------------------- ^ expected struct `Foo`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:39:19 | LL | want::(f); | ------------- ^ expected `usize`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected type `usize` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:40:17 | LL | want::(f); | ----------- ^ expected struct `foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:41:17 | LL | want::(f); | ----------- ^ expected struct `bar`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `bar` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:42:24 | LL | want::>(f); | ------------------ ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:43:27 | LL | want::>(f); | --------------------- ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:44:25 | LL | want::>(f); | ------------------- ^ expected struct `B`, found struct `A` | | | arguments to this function are incorrect | = note: expected struct `Foo<_, B>` found struct `Foo<_, A>` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:45:22 | LL | want::>(f); | ---------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:46:25 | LL | want::>(f); | ------------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:47:23 | LL | want::<&Foo>(f); | ----------------- ^ | | | | | expected `&Foo`, found struct `Foo` | | help: consider borrowing here: `&f` | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:48:26 | LL | want::<&Foo>(f); | -------------------- ^ expected `&Foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:52:19 | LL | want::(f); | ------------- ^ expected `usize`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected type `usize` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:53:17 | LL | want::(f); | ----------- ^ expected struct `foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:54:17 | LL | want::(f); | ----------- ^ expected struct `bar`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `bar` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:55:24 | LL | want::>(f); | ------------------ ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:56:27 | LL | want::>(f); | --------------------- ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:57:22 | LL | want::>(f); | ---------------- ^ expected struct `A`, found struct `B` | | | arguments to this function are incorrect | = note: expected struct `Foo<_, A>` found struct `Foo<_, B>` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:58:22 | LL | want::>(f); | ---------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:59:25 | LL | want::>(f); | ------------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:60:23 | LL | want::<&Foo>(f); | ----------------- ^ expected `&Foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:61:26 | LL | want::<&Foo>(f); | -------------------- ^ | | | | | expected `&Foo`, found struct `Foo` | | help: consider borrowing here: `&f` | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:65:19 | LL | want::(f); | ------------- ^ expected `usize`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected type `usize` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:66:17 | LL | want::(f); | ----------- ^ expected struct `foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:67:17 | LL | want::(f); | ----------- ^ expected struct `bar`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected struct `bar` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:68:24 | LL | want::>(f); | ------------------ ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:69:27 | LL | want::>(f); | --------------------- ^ expected `usize`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:70:22 | LL | want::>(f); | ---------------- ^ expected struct `A`, found struct `B` | | | arguments to this function are incorrect | = note: expected struct `Foo<_, A, B>` found struct `Foo<_, B, A>` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:71:25 | LL | want::>(f); | ------------------- ^ expected struct `B`, found struct `A` | | | arguments to this function are incorrect | = note: expected struct `Foo<_, _, B>` found struct `Foo<_, _, A>` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:72:22 | LL | want::>(f); | ---------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:73:25 | LL | want::>(f); | ------------------- ^ expected struct `bar`, found struct `foo` | | | arguments to this function are incorrect | = note: expected struct `Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:74:23 | LL | want::<&Foo>(f); | ----------------- ^ expected `&Foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error[E0308]: mismatched types --> $DIR/type-mismatch.rs:75:26 | LL | want::<&Foo>(f); | -------------------- ^ expected `&Foo`, found struct `Foo` | | | arguments to this function are incorrect | = note: expected reference `&Foo` found struct `Foo` note: function defined here --> $DIR/type-mismatch.rs:14:4 | LL | fn want(t: T) {} | ^^^^ ---- error: aborting due to 47 previous errors For more information about this error, try `rustc --explain E0308`.