Skip to content

Commit acfe582

Browse files
committed
adjust E0303 error code docs
1 parent 371446c commit acfe582

File tree

1 file changed

+9
-1
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+9
-1
lines changed

src/librustc_error_codes/error_codes/E0303.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
3+
Sub-bindings, e.g. `ref x @ Some(ref y)` are now allowed under
4+
`#![feature(bindings_after_at)]` and checked to make sure that
5+
memory safety is upheld.
6+
7+
--------------
8+
19
In certain cases it is possible for sub-bindings to violate memory safety.
210
Updates to the borrow checker in a future version of Rust may remove this
311
restriction, but for now patterns must be rewritten without sub-bindings.
412

513
Before:
614

7-
```compile_fail,E0303
15+
```compile_fail
816
match Some("hi".to_string()) {
917
ref op_string_ref @ Some(s) => {},
1018
None => {},

0 commit comments

Comments
 (0)