summary refs log tree commit diff
path: root/src/test/ui/impl-trait
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2021-07-14 16:55:31 -0300
committerSantiago Pastorino <spastorino@gmail.com>2021-07-18 09:30:09 -0300
commit962ac8183d174d409db549cd6b502d847aa04f12 (patch)
treeaa4a8b82e98ec89c7ab743c09cc6e0383b3df6a1 /src/test/ui/impl-trait
parent4d2d90307d7a7ac70a2cd4545dbe917f79eb9dff (diff)
downloadrust-962ac8183d174d409db549cd6b502d847aa04f12.tar.gz
rust-962ac8183d174d409db549cd6b502d847aa04f12.zip
Remove impl_trait_in_bindings handling on inference error reporting
Diffstat (limited to 'src/test/ui/impl-trait')
-rw-r--r--src/test/ui/impl-trait/bindings.stderr77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/test/ui/impl-trait/bindings.stderr b/src/test/ui/impl-trait/bindings.stderr
deleted file mode 100644
index 05f3f2e0d3e..00000000000
--- a/src/test/ui/impl-trait/bindings.stderr
+++ /dev/null
@@ -1,77 +0,0 @@
-error[E0435]: attempt to use a non-constant value in a constant
-  --> $DIR/bindings.rs:5:29
-   |
-LL |     const foo: impl Clone = x;
-   |     ---------               ^ non-constant value
-   |     |
-   |     help: consider using `let` instead of `const`: `let foo`
-
-error[E0435]: attempt to use a non-constant value in a constant
-  --> $DIR/bindings.rs:11:33
-   |
-LL |         const foo: impl Clone = x;
-   |         ---------               ^ non-constant value
-   |         |
-   |         help: consider using `let` instead of `const`: `let foo`
-
-error[E0435]: attempt to use a non-constant value in a constant
-  --> $DIR/bindings.rs:18:33
-   |
-LL |         const foo: impl Clone = x;
-   |         ---------               ^ non-constant value
-   |         |
-   |         help: consider using `let` instead of `const`: `let foo`
-
-error[E0435]: attempt to use a non-constant value in a constant
-  --> $DIR/bindings.rs:25:33
-   |
-LL |         const foo: impl Clone = x;
-   |         ---------               ^ non-constant value
-   |         |
-   |         help: consider using `let` instead of `const`: `let foo`
-
-error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
-  --> $DIR/bindings.rs:5:16
-   |
-LL |     const foo: impl Clone = x;
-   |                ^^^^^^^^^^
-   |
-   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
-
-error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
-  --> $DIR/bindings.rs:11:20
-   |
-LL |         const foo: impl Clone = x;
-   |                    ^^^^^^^^^^
-   |
-   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
-
-error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
-  --> $DIR/bindings.rs:18:20
-   |
-LL |         const foo: impl Clone = x;
-   |                    ^^^^^^^^^^
-   |
-   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
-
-error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
-  --> $DIR/bindings.rs:25:20
-   |
-LL |         const foo: impl Clone = x;
-   |                    ^^^^^^^^^^
-   |
-   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
-
-warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
-  --> $DIR/bindings.rs:1:12
-   |
-LL | #![feature(impl_trait_in_bindings)]
-   |            ^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = note: `#[warn(incomplete_features)]` on by default
-   = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
-
-error: aborting due to 8 previous errors; 1 warning emitted
-
-Some errors have detailed explanations: E0435, E0562.
-For more information about an error, try `rustc --explain E0435`.