]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/associated_type_bound/check-trait-object-bounds-5.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / traits / associated_type_bound / check-trait-object-bounds-5.stderr
index bd2b789cd990896d29c3776659d051bd48f5bf89..c97408ff91e8f15edbf3a25875fbfdb53808f641 100644 (file)
@@ -1,11 +1,14 @@
 error[E0271]: type mismatch resolving `<i32 as Is>::T == i64`
   --> $DIR/check-trait-object-bounds-5.rs:23:5
    |
-LL | fn is_obj<T: ?Sized + Obj>(_: &T) {}
-   |                       --- required by this bound in `is_obj`
-...
 LL |     is_obj(x)
    |     ^^^^^^ expected `i64`, found `i32`
+   |
+note: required by a bound in `is_obj`
+  --> $DIR/check-trait-object-bounds-5.rs:20:23
+   |
+LL | fn is_obj<T: ?Sized + Obj>(_: &T) {}
+   |                       ^^^ required by this bound in `is_obj`
 
 error: aborting due to previous error