about summary refs log tree commit diff
path: root/tests/ui/ufcs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-02-22 18:38:10 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-02-22 18:38:10 +0000
commit91d0b371ef2b7a6cdca5f723ba96b6fbfd08ca4c (patch)
tree1ec551e5db85317cc4930f21a92e8fb4d410638f /tests/ui/ufcs
parentd67dcf5a8bb14f6c83f5c86edea0c72835974aa5 (diff)
downloadrust-91d0b371ef2b7a6cdca5f723ba96b6fbfd08ca4c.tar.gz
rust-91d0b371ef2b7a6cdca5f723ba96b6fbfd08ca4c.zip
Fix rebase
Diffstat (limited to 'tests/ui/ufcs')
-rw-r--r--tests/ui/ufcs/bad-builder.stderr9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/ui/ufcs/bad-builder.stderr b/tests/ui/ufcs/bad-builder.stderr
index 7fa47c82de2..e1c5e45b3eb 100644
--- a/tests/ui/ufcs/bad-builder.stderr
+++ b/tests/ui/ufcs/bad-builder.stderr
@@ -2,10 +2,7 @@ error[E0599]: no function or associated item named `mew` found for struct `Vec<Q
   --> $DIR/bad-builder.rs:2:15
    |
 LL |     Vec::<Q>::mew()
-   |               ^^^
-   |               |
-   |               function or associated item not found in `Vec<Q>`
-   |               help: there is an associated function with a similar name: `new`
+   |               ^^^ function or associated item not found in `Vec<Q>`
    |
 note: if you're trying to build a new `Vec<Q>` consider using one of the following associated functions:
       Vec::<T>::new
@@ -14,6 +11,10 @@ note: if you're trying to build a new `Vec<Q>` consider using one of the followi
       Vec::<T, A>::new_in
       and 2 others
   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+help: there is an associated function `new` with a similar name
+   |
+LL |     Vec::<Q>::new()
+   |               ~~~
 
 error: aborting due to 1 previous error