blob: 8010c0842ba97c6e5c4f51522a11bc75bd57a486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
error[E0425]: cannot find value `foo` in this scope
--> $DIR/dont-match-error-ty-with-calller-supplied-obligation-issue-121941.rs:2:5
|
LL | foo == 2;
| ^^^ not found in this scope
error[E0308]: mismatched types
--> $DIR/dont-match-error-ty-with-calller-supplied-obligation-issue-121941.rs:2:12
|
LL | fn function<T: PartialEq>() {
| - expected this type parameter
LL | foo == 2;
| ^ expected type parameter `T`, found integer
|
= note: expected type parameter `T`
found type `{integer}`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.
|