11error: trait cannot be implemented outside `external`
2- --> $DIR/impl-restriction-check.rs:11 :1
2+ --> $DIR/impl-restriction-check.rs:9 :1
33 |
44LL | impl external::TopLevel for LocalType {}
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -11,7 +11,7 @@ LL | pub impl(crate) trait TopLevel {}
1111 | ^^^^^^^^^^^
1212
1313error: trait cannot be implemented outside `external`
14- --> $DIR/impl-restriction-check.rs:12 :1
14+ --> $DIR/impl-restriction-check.rs:10 :1
1515 |
1616LL | impl external::inner::Inner for LocalType {}
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,73 +23,73 @@ LL | pub impl(self) trait Inner {}
2323 | ^^^^^^^^^^
2424
2525error: trait cannot be implemented outside `crate::foo::bar`
26- --> $DIR/impl-restriction-check.rs:29 :5
26+ --> $DIR/impl-restriction-check.rs:27 :5
2727 |
2828LL | impl bar::Foo for i8 {}
2929 | ^^^^^^^^^^^^^^^^^^^^
3030 |
3131note: trait restricted here
32- --> $DIR/impl-restriction-check.rs:16 :20
32+ --> $DIR/impl-restriction-check.rs:14 :20
3333 |
3434LL | pub(crate) impl(self) trait Foo {}
3535 | ^^^^^^^^^^
3636
3737error: trait cannot be implemented outside `crate::foo::bar`
38- --> $DIR/impl-restriction-check.rs:38 :1
38+ --> $DIR/impl-restriction-check.rs:36 :1
3939 |
4040LL | impl foo::bar::Foo for u8 {}
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^
4242 |
4343note: trait restricted here
44- --> $DIR/impl-restriction-check.rs:16 :20
44+ --> $DIR/impl-restriction-check.rs:14 :20
4545 |
4646LL | pub(crate) impl(self) trait Foo {}
4747 | ^^^^^^^^^^
4848
4949error: trait cannot be implemented outside `crate::foo`
50- --> $DIR/impl-restriction-check.rs:40 :1
50+ --> $DIR/impl-restriction-check.rs:38 :1
5151 |
5252LL | impl foo::bar::Bar for u8 {}
5353 | ^^^^^^^^^^^^^^^^^^^^^^^^^
5454 |
5555note: trait restricted here
56- --> $DIR/impl-restriction-check.rs:17 :20
56+ --> $DIR/impl-restriction-check.rs:15 :20
5757 |
5858LL | pub(crate) impl(super) trait Bar {}
5959 | ^^^^^^^^^^^
6060
6161error: trait cannot be implemented outside `crate::foo::bar`
62- --> $DIR/impl-restriction-check.rs:33 :5
62+ --> $DIR/impl-restriction-check.rs:31 :5
6363 |
6464LL | impl bar::Qux for i8 {}
6565 | ^^^^^^^^^^^^^^^^^^^^
6666 |
6767note: trait restricted here
68- --> $DIR/impl-restriction-check.rs:19 :20
68+ --> $DIR/impl-restriction-check.rs:17 :20
6969 |
7070LL | pub(crate) impl(in crate::foo::bar) trait Qux {}
7171 | ^^^^^^^^^^^^^^^^^^^^^^^^
7272
7373error: trait cannot be implemented outside `crate::foo::bar`
74- --> $DIR/impl-restriction-check.rs:43 :1
74+ --> $DIR/impl-restriction-check.rs:41 :1
7575 |
7676LL | impl foo::bar::Qux for u8 {}
7777 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7878 |
7979note: trait restricted here
80- --> $DIR/impl-restriction-check.rs:19 :20
80+ --> $DIR/impl-restriction-check.rs:17 :20
8181 |
8282LL | pub(crate) impl(in crate::foo::bar) trait Qux {}
8383 | ^^^^^^^^^^^^^^^^^^^^^^^^
8484
8585error: trait cannot be implemented outside `crate::foo`
86- --> $DIR/impl-restriction-check.rs:45 :1
86+ --> $DIR/impl-restriction-check.rs:43 :1
8787 |
8888LL | impl foo::bar::FooBar for u8 {}
8989 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9090 |
9191note: trait restricted here
92- --> $DIR/impl-restriction-check.rs:20 :20
92+ --> $DIR/impl-restriction-check.rs:18 :20
9393 |
9494LL | pub(crate) impl(in crate::foo) trait FooBar {}
9595 | ^^^^^^^^^^^^^^^^^^^
0 commit comments