summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr')
-rw-r--r--src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr b/src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr
new file mode 100644
index 000000000..4b398d791
--- /dev/null
+++ b/src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr
@@ -0,0 +1,83 @@
+error: associated type in `impl` without body
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:8:5
+ |
+LL | type Y;
+ | ^^^^^^-
+ | |
+ | help: provide a definition for the type: `= <type>;`
+
+error: associated type in `impl` without body
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:11:5
+ |
+LL | type Z: Ord;
+ | ^^^^^^^^^^^-
+ | |
+ | help: provide a definition for the type: `= <type>;`
+
+error: bounds on `type`s in `impl`s have no effect
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:11:13
+ |
+LL | type Z: Ord;
+ | ^^^
+
+error: associated type in `impl` without body
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:15:5
+ |
+LL | type W: Ord where Self: Eq;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^-
+ | |
+ | help: provide a definition for the type: `= <type>;`
+
+error: bounds on `type`s in `impl`s have no effect
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:15:13
+ |
+LL | type W: Ord where Self: Eq;
+ | ^^^
+
+error: associated type in `impl` without body
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:19:5
+ |
+LL | type W where Self: Eq;
+ | ^^^^^^^^^^^^^^^^^^^^^-
+ | |
+ | help: provide a definition for the type: `= <type>;`
+
+error[E0658]: inherent associated types are unstable
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:8:5
+ |
+LL | type Y;
+ | ^^^^^^^
+ |
+ = note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
+ = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
+
+error[E0658]: inherent associated types are unstable
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:11:5
+ |
+LL | type Z: Ord;
+ | ^^^^^^^^^^^^
+ |
+ = note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
+ = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
+
+error[E0658]: inherent associated types are unstable
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:15:5
+ |
+LL | type W: Ord where Self: Eq;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
+ = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
+
+error[E0658]: inherent associated types are unstable
+ --> $DIR/impl-item-type-no-body-semantic-fail.rs:19:5
+ |
+LL | type W where Self: Eq;
+ | ^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
+ = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
+
+error: aborting due to 10 previous errors
+
+For more information about this error, try `rustc --explain E0658`.