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

ices/111906-1.rs: fixed with no errors #1721

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#111906

fn foo<'a: 'a>() -> impl Sized {
    let _: () = foo::<'a>();
    loop {}
}

fn main() {}
=== stdout ===
=== stderr ===
warning: function cannot return without recursing
 --> /home/runner/work/glacier/glacier/ices/111906-1.rs:1:1
  |
1 | fn foo<'a: 'a>() -> impl Sized {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
2 |     let _: () = foo::<'a>();
  |                 ----------- recursive call site
  |
  = help: a `loop` may express intention better if this is on purpose
  = note: `#[warn(unconditional_recursion)]` on by default

warning: function `foo` is never used
 --> /home/runner/work/glacier/glacier/ices/111906-1.rs:1:4
  |
1 | fn foo<'a: 'a>() -> impl Sized {
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: function cannot return without recursing
 --> /home/runner/work/glacier/glacier/ices/111906-1.rs:1:1
  |
1 | fn foo<'a: 'a>() -> impl Sized {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
2 |     let _: () = foo::<'a>();
  |                 ----------- recursive call site
  |
  = help: a `loop` may express intention better if this is on purpose
  = note: `#[warn(unconditional_recursion)]` on by default

warning: function `foo` is never used
 --> /home/runner/work/glacier/glacier/ices/111906-1.rs:1:4
  |
1 | fn foo<'a: 'a>() -> impl Sized {
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============
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.

1 participant