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

ices/80779.rs: fixed with errors #672

Merged
merged 1 commit into from
Feb 28, 2021
Merged

ices/80779.rs: fixed with errors #672

merged 1 commit into from
Feb 28, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#80779

pub struct T<'a>(&'a str);

pub fn f<'a>(val: T<'a>) -> _ {
    g(val)
}

pub fn g(_: T<'static>) -> _ {}

fn main() {}
=== stdout ===
=== stderr ===
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/80779.rs:7:28
  |
7 | pub fn g(_: T<'static>) -> _ {}
  |                            ^
  |                            |
  |                            not allowed in type signatures
  |                            help: replace with the correct return type: `()`

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/80779.rs:3:29
  |
3 | pub fn f<'a>(val: T<'a>) -> _ {
  |                             ^
  |                             |
  |                             not allowed in type signatures
  |                             help: replace with the correct return type: `()`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0121`.
==============

=== stdout ===
=== stderr ===
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/80779.rs:7:28
  |
7 | pub fn g(_: T<'static>) -> _ {}
  |                            ^
  |                            |
  |                            not allowed in type signatures
  |                            help: replace with the correct return type: `()`

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/80779.rs:3:29
  |
3 | pub fn f<'a>(val: T<'a>) -> _ {
  |                             ^
  |                             |
  |                             not allowed in type signatures
  |                             help: replace with the correct return type: `()`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0121`.
==============
@JohnTitor JohnTitor merged commit a84cca4 into master Feb 28, 2021
@JohnTitor JohnTitor deleted the autofix/ices/80779.rs branch February 28, 2021 12:34
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.

None yet

2 participants