Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ices/96954.rs: fixed with errors #1283

Merged
merged 1 commit into from Jun 7, 2022
Merged

ices/96954.rs: fixed with errors #1283

merged 1 commit into from Jun 7, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 7, 2022

Issue: rust-lang/rust#96954

trait Tr<'a> {
    type Assoc;
}
fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>)  {}
fn main() {}
=== stdout ===
=== stderr ===
error: `impl Trait` can only mention lifetimes bound at the fn or impl level
 --> /home/runner/work/glacier/glacier/ices/96954.rs:4:70
  |
4 | fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>)  {}
  |                                                                      ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/96954.rs:4:39
  |
4 | fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>)  {}
  |                                       ^^

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: `impl Trait` can only mention lifetimes bound at the fn or impl level
 --> /home/runner/work/glacier/glacier/ices/96954.rs:4:70
  |
4 | fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>)  {}
  |                                                                      ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/96954.rs:4:39
  |
4 | fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>)  {}
  |                                       ^^

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit 0171fa4 into master Jun 7, 2022
@JohnTitor JohnTitor deleted the autofix/ices/96954.rs branch June 7, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants