File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/tools/miri/tests/fail/closures Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | | match x {
77LL | | &&_y => {},
88LL | | }
99LL | | };
10- | |_____^ constructing invalid value: encountered a dangling reference (use-after-free)
10+ | |_____^ Undefined Behavior occurred here
1111 |
1212 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | | match x {
77LL | | (&_y, _) => {},
88LL | | }
99LL | | };
10- | |_____^ constructing invalid value: encountered a dangling reference (use-after-free)
10+ | |_____^ Undefined Behavior occurred here
1111 |
1212 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: Undefined Behavior: read discriminant of an uninhabited enum variant
22 --> tests/fail/closures/uninhabited-variant.rs:LL:CC
33 |
44LL | match r {
5- | ^ read discriminant of an uninhabited enum variant
5+ | ^ Undefined Behavior occurred here
66 |
77 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
You can’t perform that action at this time.
0 commit comments