1 #### Note: this error code is no longer emitted by the compiler.
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.
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.
16 match Some("hi".to_string()) {
17 ref op_string_ref @ Some(s) => {},
25 match Some("hi".to_string()) {
27 let op_string_ref = &Some(s);
34 The `op_string_ref` binding has type `&Option<&String>` in both cases.
36 See also https://github.com/rust-lang/rust/issues/14587