Skip to content

Commit 69db412

Browse files
committed
Add missing error code explanation for E0183
This is part of the ongoing work for rust-lang#61137
1 parent 5187be6 commit 69db412

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/librustc_typeck/error_codes.rs

+14-1
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,20 @@ fn bar(foo: Foo) -> u32 {
15881588
```
15891589
"##,
15901590

1591+
E0183: r##"
1592+
Fn* traits (`unboxed closures`) are experimental.
1593+
1594+
Functions must have exactly one (non self) argument, a tuple representing
1595+
the argument list [1]. This feature can be enabled with:
1596+
1597+
```
1598+
#![feature(unboxed_closures)]
1599+
```
1600+
1601+
[1]: https://doc.rust-lang.org/unstable-book/language-features/unboxed-closures.html
1602+
[iss29625]: https://github.com/rust-lang/rust/issues/26925
1603+
"##,
1604+
15911605
E0184: r##"
15921606
Explicitly implementing both Drop and Copy for a type is currently disallowed.
15931607
This feature can make some sense in theory, but the current implementation is
@@ -4671,7 +4685,6 @@ register_diagnostics! {
46714685
// E0173, // manual implementations of unboxed closure traits are experimental
46724686
// E0174,
46734687
// E0182, // merged into E0229
4674-
E0183,
46754688
// E0187, // can't infer the kind of the closure
46764689
// E0188, // can not cast an immutable reference to a mutable pointer
46774690
// E0189, // deprecated: can only cast a boxed pointer to a boxed object

0 commit comments

Comments
 (0)