-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bindings_after_at: harden tests
- Loading branch information
Showing
50 changed files
with
1,919 additions
and
541 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-2.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-2.stderr
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-3.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-3.stderr
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-4.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/bind-by-move/bind-by-move-neither-can-live-while-the-other-survives-4.stderr
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![feature(slice_patterns, unsized_locals)] | ||
#![feature(unsized_locals)] | ||
|
||
struct A; | ||
#[derive(Clone, Copy)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// See issue #12534. | ||
|
||
#![feature(bindings_after_at)] | ||
#![feature(move_ref_pattern)] | ||
|
||
fn main() {} | ||
|
||
struct A(Box<u8>); | ||
|
||
fn f(a @ A(u): A) -> Box<u8> { | ||
//~^ ERROR cannot bind by-move with sub-bindings | ||
//~| ERROR use of moved value | ||
//~^ ERROR use of moved value | ||
drop(a); | ||
u | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.