Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/106077.rs: fixed with errors #1513

Merged
merged 1 commit into from
Feb 24, 2023
Merged

ices/106077.rs: fixed with errors #1513

merged 1 commit into from
Feb 24, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#106077

#![feature(associated_type_bounds)]

struct Bug<T: ?Sized>(T);

impl Bug<dyn Iterator<Item: Copy>> {}

fn main() {}
=== stdout ===
=== stderr ===
error: associated type bounds are only allowed in where clauses and function signatures, not in impl headers
 --> /home/runner/work/glacier/glacier/ices/106077.rs:5:23
  |
5 | impl Bug<dyn Iterator<Item: Copy>> {}
  |                       ^^^^^^^^^^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error: associated type bounds are only allowed in where clauses and function signatures, not in impl headers
 --> /home/runner/work/glacier/glacier/ices/106077.rs:5:23
  |
5 | impl Bug<dyn Iterator<Item: Copy>> {}
  |                       ^^^^^^^^^^

error: aborting due to previous error

==============
@Alexendoo Alexendoo merged commit 6234c73 into master Feb 24, 2023
@Alexendoo Alexendoo deleted the autofix/ices/106077.rs branch February 24, 2023 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants