-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
trait T {
fn foo();
}
fn bar<V: T>(v: @V) {
v.foo();
}
fn main() {
bar(5);
}
/tmp/typecheck.rs:10:8: 10:9 error: mismatched types: expected `@<V0>` but found `<VI0>` (expected @-ptr but found integral variable)
/tmp/typecheck.rs:10 bar(5);
^
/tmp/typecheck.rs:10:4: 10:7 error: cannot determine a type for this bounded type parameter: unconstrained type
/tmp/typecheck.rs:10 bar(5);
^~~
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints