| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:8:1 |
| | |
| LL | impl(crate) trait Alias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `auto` |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:10:1 |
| | |
| LL | auto impl(in crate) trait AutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto` |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:10:1 |
| | |
| LL | auto impl(in crate) trait AutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `unsafe` |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:13:1 |
| | |
| LL | unsafe impl(self) trait UnsafeAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe` |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:13:1 |
| | |
| LL | unsafe impl(self) trait UnsafeAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:16:1 |
| | |
| LL | const impl(in self) trait ConstAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:20:5 |
| | |
| LL | impl(super) trait InnerAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `unsafe` |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:22:5 |
| | |
| LL | const unsafe impl(in crate::foo) trait InnerConstUnsafeAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe` |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:22:5 |
| | |
| LL | const unsafe impl(in crate::foo) trait InnerConstUnsafeAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error: trait aliases cannot be `auto` |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:25:5 |
| | |
| LL | unsafe auto impl(in crate::foo) trait InnerUnsafeAutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto` |
| |
| error: trait aliases cannot be `unsafe` |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:25:5 |
| | |
| LL | unsafe auto impl(in crate::foo) trait InnerUnsafeAutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe` |
| |
| error: trait aliases cannot be `impl`-restricted |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:25:5 |
| | |
| LL | unsafe auto impl(in crate::foo) trait InnerUnsafeAutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `impl`-restricted |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:8:1 |
| | |
| LL | impl(crate) trait Alias = Copy; |
| | ^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:10:6 |
| | |
| LL | auto impl(in crate) trait AutoAlias = Copy; |
| | ^^^^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:13:8 |
| | |
| LL | unsafe impl(self) trait UnsafeAlias = Copy; |
| | ^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:16:7 |
| | |
| LL | const impl(in self) trait ConstAlias = Copy; |
| | ^^^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:20:5 |
| | |
| LL | impl(super) trait InnerAlias = Copy; |
| | ^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:22:18 |
| | |
| LL | const unsafe impl(in crate::foo) trait InnerConstUnsafeAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error[E0658]: `impl` restrictions are experimental |
| --> $DIR/trait-alias-cannot-be-impl-restricted.rs:25:17 |
| | |
| LL | unsafe auto impl(in crate::foo) trait InnerUnsafeAutoAlias = Copy; |
| | ^^^^^^^^^^^^^^^^^^^ |
| | |
| = note: see issue #105077 <https://github.com/rust-lang/rust/issues/105077> for more information |
| = help: add `#![feature(impl_restriction)]` to the crate attributes to enable |
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| |
| error: aborting due to 19 previous errors |
| |
| For more information about this error, try `rustc --explain E0658`. |