-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use parent function WfCheckingContext to check RPITIT.
- Loading branch information
Showing
9 changed files
with
63 additions
and
75 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
3 changes: 1 addition & 2 deletions
3
src/test/ui/async-await/in-trait/async-lifetimes-and-bounds.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,5 +1,4 @@ | ||
// check-fail | ||
// known-bug: #102682 | ||
// check-pass | ||
// edition: 2021 | ||
|
||
#![feature(async_fn_in_trait)] | ||
|
23 changes: 0 additions & 23 deletions
23
src/test/ui/async-await/in-trait/async-lifetimes-and-bounds.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// check-fail | ||
// known-bug: #102682 | ||
// check-pass | ||
// edition: 2021 | ||
|
||
#![feature(async_fn_in_trait)] | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// check-pass | ||
// edition: 2021 | ||
|
||
#![feature(async_fn_in_trait)] | ||
#![allow(incomplete_features)] | ||
|
||
trait TcpStack { | ||
type Connection<'a>: Sized where Self: 'a; | ||
fn connect<'a>(&'a self) -> Self::Connection<'a>; | ||
async fn async_connect<'a>(&'a self) -> Self::Connection<'a>; | ||
} | ||
|
||
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,24 @@ | ||
// check-pass | ||
// edition: 2021 | ||
|
||
#![feature(return_position_impl_trait_in_trait)] | ||
#![allow(incomplete_features)] | ||
|
||
use std::fmt::Debug; | ||
|
||
trait Foo<Item> { | ||
fn foo<'a>(&'a self) -> impl Debug | ||
where | ||
Item: 'a; | ||
} | ||
|
||
impl<Item, D: Debug + Clone> Foo<Item> for D { | ||
fn foo<'a>(&'a self) -> impl Debug | ||
where | ||
Item: 'a, | ||
{ | ||
self.clone() | ||
} | ||
} | ||
|
||
fn main() {} |