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

ices/109129.rs: fixed with errors #1531

Merged
merged 1 commit into from
Mar 16, 2023
Merged

ices/109129.rs: fixed with errors #1531

merged 1 commit into from
Mar 16, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109129

extern crate proc_macro;

trait Project {
    type Assoc;
}

#[proc_macro]
fn uwu() -> <() as Project>::Assoc {}
=== stdout ===
=== stderr ===
error: the `#[proc_macro]` attribute is only usable with crates of the `proc-macro` crate type
 --> /home/runner/work/glacier/glacier/ices/109129.rs:7:1
  |
7 | #[proc_macro]
  | ^^^^^^^^^^^^^

warning: unused macro definition: `uwu`
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:4
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |    ^^^
  |
  = note: `#[warn(unused_macros)]` on by default

error[E0601]: `main` function not found in crate `109129`
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:38
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |                                      ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109129.rs`

error[E0277]: the trait bound `(): Project` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:13
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |             ^^^^^^^^^^^^^^^^^^^^^^ the trait `Project` is not implemented for `()`

error: aborting due to 3 previous errors; 1 warning emitted

Some errors have detailed explanations: E0277, E0601.
For more information about an error, try `rustc --explain E0277`.
==============

=== stdout ===
=== stderr ===
error: the `#[proc_macro]` attribute is only usable with crates of the `proc-macro` crate type
 --> /home/runner/work/glacier/glacier/ices/109129.rs:7:1
  |
7 | #[proc_macro]
  | ^^^^^^^^^^^^^

warning: unused macro definition: `uwu`
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:4
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |    ^^^
  |
  = note: `#[warn(unused_macros)]` on by default

error[E0601]: `main` function not found in crate `109129`
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:38
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |                                      ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109129.rs`

error[E0277]: the trait bound `(): Project` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/109129.rs:8:13
  |
8 | fn uwu() -> <() as Project>::Assoc {}
  |             ^^^^^^^^^^^^^^^^^^^^^^ the trait `Project` is not implemented for `()`

error: aborting due to 3 previous errors; 1 warning emitted

Some errors have detailed explanations: E0277, E0601.
For more information about an error, try `rustc --explain E0277`.
==============
@Alexendoo Alexendoo merged commit c5e6013 into master Mar 16, 2023
@Alexendoo Alexendoo deleted the autofix/ices/109129.rs branch March 16, 2023 15:38
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