We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371446c commit acfe582Copy full SHA for acfe582
src/librustc_error_codes/error_codes/E0303.md
@@ -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
9
In certain cases it is possible for sub-bindings to violate memory safety.
10
Updates to the borrow checker in a future version of Rust may remove this
11
restriction, but for now patterns must be rewritten without sub-bindings.
12
13
Before:
14
-```compile_fail,E0303
15
+```compile_fail
16
match Some("hi".to_string()) {
17
ref op_string_ref @ Some(s) => {},
18
None => {},
0 commit comments