blob: f0e0e1159353a908b6ab208057184eecfa0f55aa [file]
error: trait cannot be implemented outside `external`
--> $DIR/impl-restriction-check.rs:9:1
|
LL | impl external::TopLevel for LocalType {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/auxiliary/external-impl-restriction.rs:3:5
|
LL | pub impl(crate) trait TopLevel {}
| ^^^^^^^^^^^
error: trait cannot be implemented outside `external`
--> $DIR/impl-restriction-check.rs:10:1
|
LL | impl external::inner::Inner for LocalType {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/auxiliary/external-impl-restriction.rs:6:9
|
LL | pub impl(self) trait Inner {}
| ^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo::bar`
--> $DIR/impl-restriction-check.rs:27:5
|
LL | impl bar::Foo for i8 {}
| ^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:14:20
|
LL | pub(crate) impl(self) trait Foo {}
| ^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo::bar`
--> $DIR/impl-restriction-check.rs:36:1
|
LL | impl foo::bar::Foo for u8 {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:14:20
|
LL | pub(crate) impl(self) trait Foo {}
| ^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo`
--> $DIR/impl-restriction-check.rs:38:1
|
LL | impl foo::bar::Bar for u8 {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:15:20
|
LL | pub(crate) impl(super) trait Bar {}
| ^^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo::bar`
--> $DIR/impl-restriction-check.rs:31:5
|
LL | impl bar::Qux for i8 {}
| ^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:17:20
|
LL | pub(crate) impl(in crate::foo::bar) trait Qux {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo::bar`
--> $DIR/impl-restriction-check.rs:41:1
|
LL | impl foo::bar::Qux for u8 {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:17:20
|
LL | pub(crate) impl(in crate::foo::bar) trait Qux {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: trait cannot be implemented outside `crate::foo`
--> $DIR/impl-restriction-check.rs:43:1
|
LL | impl foo::bar::FooBar for u8 {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: trait restricted here
--> $DIR/impl-restriction-check.rs:18:20
|
LL | pub(crate) impl(in crate::foo) trait FooBar {}
| ^^^^^^^^^^^^^^^^^^^
error: aborting due to 8 previous errors