-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e154b64
commit 4213228
Showing
12 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
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 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 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 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![feature(precise_capturing)] | ||
//~^ WARN the feature `precise_capturing` is incomplete | ||
|
||
fn hello(_: impl use<> Sized) {} | ||
//~^ ERROR `use<...>` precise capturing syntax not allowed on argument-position `impl Trait` | ||
|
||
fn main() {} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
warning: the feature `precise_capturing` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/apit.rs:1:12 | ||
| | ||
LL | #![feature(precise_capturing)] | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error: `use<...>` precise capturing syntax not allowed on argument-position `impl Trait` | ||
--> $DIR/apit.rs:4:18 | ||
| | ||
LL | fn hello(_: impl use<> Sized) {} | ||
| ^^^ | ||
|
||
error: aborting due to 1 previous error; 1 warning emitted | ||
|
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 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//@ check-pass | ||
|
||
#![feature(precise_capturing)] | ||
//~^ WARN the feature `precise_capturing` is incomplete | ||
|
||
fn elided(x: &()) -> impl use<'_> Sized { x } | ||
|
||
fn main() {} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
warning: the feature `precise_capturing` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/elided.rs:3:12 | ||
| | ||
LL | #![feature(precise_capturing)] | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|