]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-item/issue-48027.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / associated-item / issue-48027.stderr
index 92d74e38cfa8db81a4164e62c0a3374b293a02df..33ab4bb967a9704135fa83e75bb38cff50417d56 100644 (file)
@@ -16,8 +16,6 @@ LL |     const X: usize;
 error[E0283]: type annotations needed
   --> $DIR/issue-48027.rs:3:32
    |
-LL |     const X: usize;
-   |     --------------- required by `Bar::X`
 LL |     fn return_n(&self) -> [u8; Bar::X];
    |                                ^^^^^^
    |                                |
@@ -26,6 +24,11 @@ LL |     fn return_n(&self) -> [u8; Bar::X];
    |
    = note: cannot satisfy `_: Bar`
    = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
+note: required by `Bar::X`
+  --> $DIR/issue-48027.rs:2:5
+   |
+LL |     const X: usize;
+   |     ^^^^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors