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

ices/86238.rs: fixed with errors #866

Merged
merged 1 commit into from
Jul 13, 2021
Merged

ices/86238.rs: fixed with errors #866

merged 1 commit into from
Jul 13, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#86238

#![no_core]
fn main() {
    let one = || {};
    one()
}
#[lang = "sized"]
trait Sized {}
#[lang = "copy"]
trait Copy {}
=== stdout ===
=== stderr ===
error[E0658]: language items are subject to change
 --> /home/runner/work/glacier/glacier/ices/86238.rs:6:1
  |
6 | #[lang = "sized"]
  | ^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(lang_items)]` to the crate attributes to enable

error[E0658]: language items are subject to change
 --> /home/runner/work/glacier/glacier/ices/86238.rs:8:1
  |
8 | #[lang = "copy"]
  | ^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(lang_items)]` to the crate attributes to enable

error[E0658]: the `#[no_core]` attribute is an experimental feature
 --> /home/runner/work/glacier/glacier/ices/86238.rs:1:1
  |
1 | #![no_core]
  | ^^^^^^^^^^^
  |
  = note: see issue #29639 <https://github.com/rust-lang/rust/issues/29639> for more information
  = help: add `#![feature(no_core)]` to the crate attributes to enable

error: failed to find an overloaded call trait for closure call
 --> /home/runner/work/glacier/glacier/ices/86238.rs:4:5
  |
4 |     one()
  |     ^^^^^
  |
  = help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have associated `call`/`call_mut`/`call_once` functions

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0658]: language items are subject to change
 --> /home/runner/work/glacier/glacier/ices/86238.rs:6:1
  |
6 | #[lang = "sized"]
  | ^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(lang_items)]` to the crate attributes to enable

error[E0658]: language items are subject to change
 --> /home/runner/work/glacier/glacier/ices/86238.rs:8:1
  |
8 | #[lang = "copy"]
  | ^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(lang_items)]` to the crate attributes to enable

error[E0658]: the `#[no_core]` attribute is an experimental feature
 --> /home/runner/work/glacier/glacier/ices/86238.rs:1:1
  |
1 | #![no_core]
  | ^^^^^^^^^^^
  |
  = note: see issue #29639 <rust-lang/rust#29639> for more information
  = help: add `#![feature(no_core)]` to the crate attributes to enable

error: failed to find an overloaded call trait for closure call
 --> /home/runner/work/glacier/glacier/ices/86238.rs:4:5
  |
4 |     one()
  |     ^^^^^
  |
  = help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have associated `call`/`call_mut`/`call_once` functions

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0658`.
==============
@JohnTitor JohnTitor merged commit 8278c44 into master Jul 13, 2021
@JohnTitor JohnTitor deleted the autofix/ices/86238.rs branch July 13, 2021 13:27
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