Skip to content

Commit

Permalink
Remove unneeded insignificant type in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 16, 2019
1 parent cb95ada commit 5b30862
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ mod issue28 {

struct Str<'a>(&'a str);

#[allow(dead_code)]
struct Struct {}

#[async_trait]
trait Trait1<'a> {
async fn f(x: Str<'a>) -> &'a str;
Expand All @@ -321,7 +318,7 @@ mod issue28 {
}

#[async_trait]
impl<'a> Trait1<'a> for Struct {
impl<'a> Trait1<'a> for str {
async fn f(x: Str<'a>) -> &'a str {
x.0
}
Expand Down

0 comments on commit 5b30862

Please sign in to comment.