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

ices/57200.rs: fixed with errors #290

Merged
merged 1 commit into from
Feb 16, 2020
Merged

ices/57200.rs: fixed with errors #290

merged 1 commit into from
Feb 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#57200

#![feature(impl_trait_in_bindings)]

fn bug<'a, 'b, T>()
where
    'a: 'b,
{
    let f: impl Fn(&'a T) -> &'b T = |x| x;
}


fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/57200.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error: lifetimes in impl Trait types in bindings are not currently supported
 --> /home/runner/work/glacier/glacier/ices/57200.rs:7:12
  |
7 |     let f: impl Fn(&'a T) -> &'b T = |x| x;
  |            ^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/57200.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error: lifetimes in impl Trait types in bindings are not currently supported
 --> /home/runner/work/glacier/glacier/ices/57200.rs:7:12
  |
7 |     let f: impl Fn(&'a T) -> &'b T = |x| x;
  |            ^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

==============
@Alexendoo Alexendoo merged commit 1d64f2d into master Feb 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/57200.rs branch February 16, 2020 13:35
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