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

Commit

Permalink
ices/101852.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
warning: function cannot return without recursing
 --> /home/runner/work/glacier/glacier/ices/101852.rs:1:1
  |
1 | / pub fn ice(
2 | |     x: impl AsRef<str>,
3 | | ) -> impl IntoIterator<Item = ()> {
  | |_________________________________^ cannot return without recursing
4 |       vec![].append(&mut ice(x.as_ref()));
  |                          --------------- recursive call site
  |
  = help: a `loop` may express intention better if this is on purpose
  = note: `#[warn(unconditional_recursion)]` on by default

error[E0792]: expected generic type parameter, found `&str`
 --> /home/runner/work/glacier/glacier/ices/101852.rs:4:5
  |
2 |     x: impl AsRef<str>,
  |        --------------- this generic parameter must be used with a generic type parameter
3 | ) -> impl IntoIterator<Item = ()> {
4 |     vec![].append(&mut ice(x.as_ref()));
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0792`.
==============
  • Loading branch information
rustbot committed Aug 15, 2023
1 parent 9bcaa67 commit a845a82
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit a845a82

Please sign in to comment.