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

ices/109300.rs: fixed with errors #1552

Merged
merged 1 commit into from
Mar 23, 2023
Merged

ices/109300.rs: fixed with errors #1552

merged 1 commit into from
Mar 23, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109300

#![feature(generic_const_exprs)]
trait B {
    type U<T: A>;
}

fn f<T: B<U<1i32> = ()>>() {}

fn main() {}
=== stdout ===
=== stderr ===
error[E0405]: cannot find trait `A` in this scope
 --> /home/runner/work/glacier/glacier/ices/109300.rs:3:15
  |
3 |     type U<T: A>;
  |               ^ not found in this scope

warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/109300.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
  = note: `#[warn(incomplete_features)]` on by default

error[E0747]: constant provided when a type was expected
 --> /home/runner/work/glacier/glacier/ices/109300.rs:6:13
  |
6 | fn f<T: B<U<1i32> = ()>>() {}
  |             ^^^^

error: aborting due to 2 previous errors; 1 warning emitted

Some errors have detailed explanations: E0405, E0747.
For more information about an error, try `rustc --explain E0405`.
==============

=== stdout ===
=== stderr ===
error[E0405]: cannot find trait `A` in this scope
 --> /home/runner/work/glacier/glacier/ices/109300.rs:3:15
  |
3 |     type U<T: A>;
  |               ^ not found in this scope

warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/109300.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <rust-lang/rust#76560> for more information
  = note: `#[warn(incomplete_features)]` on by default

error[E0747]: constant provided when a type was expected
 --> /home/runner/work/glacier/glacier/ices/109300.rs:6:13
  |
6 | fn f<T: B<U<1i32> = ()>>() {}
  |             ^^^^

error: aborting due to 2 previous errors; 1 warning emitted

Some errors have detailed explanations: E0405, E0747.
For more information about an error, try `rustc --explain E0405`.
==============
@Alexendoo Alexendoo merged commit ac0fdd9 into master Mar 23, 2023
@Alexendoo Alexendoo deleted the autofix/ices/109300.rs branch March 23, 2023 21:43
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