]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-17546.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-17546.stderr
index 6269ccb73e06f13b2d306f5197fb65b81edc02e6..16678c8c8a9028f655b95231e70b1672a0d75574 100644 (file)
@@ -3,7 +3,7 @@ error[E0573]: expected type, found variant `NoResult`
    |
 LL |     fn new() -> NoResult<MyEnum, String> {
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^
-   | 
+   |
   ::: $SRC_DIR/core/src/result.rs:LL:COL
    |
 LL | pub enum Result<T, E> {
@@ -12,11 +12,11 @@ LL | pub enum Result<T, E> {
 help: try using the variant's enum
    |
 LL |     fn new() -> foo::MyEnum {
-   |                 ^^^^^^^^^^^
+   |                 ~~~~~~~~~~~
 help: an enum with a similar name exists
    |
 LL |     fn new() -> Result<MyEnum, String> {
-   |                 ^^^^^^
+   |                 ~~~~~~
 
 error[E0573]: expected type, found variant `Result`
   --> $DIR/issue-17546.rs:24:17
@@ -57,7 +57,7 @@ error[E0573]: expected type, found variant `NoResult`
    |
 LL | fn newer() -> NoResult<foo::MyEnum, String> {
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   | 
+   |
   ::: $SRC_DIR/core/src/result.rs:LL:COL
    |
 LL | pub enum Result<T, E> {
@@ -66,11 +66,11 @@ LL | pub enum Result<T, E> {
 help: try using the variant's enum
    |
 LL | fn newer() -> foo::MyEnum {
-   |               ^^^^^^^^^^^
+   |               ~~~~~~~~~~~
 help: an enum with a similar name exists
    |
 LL | fn newer() -> Result<foo::MyEnum, String> {
-   |               ^^^^^^
+   |               ~~~~~~
 
 error: aborting due to 4 previous errors