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

ices/102173.rs: fixed with errors #1459

Merged
merged 1 commit into from
Nov 20, 2022
Merged

ices/102173.rs: fixed with errors #1459

merged 1 commit into from
Nov 20, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#102173

#![feature(dyn_star)]
#![allow(incomplete_features)]

use std::fmt::Debug;

fn main() {
    let i = [1, 2, 3, 4] as dyn* Debug;
    
    dbg!(i);
}
=== stdout ===
=== stderr ===
error[E0277]: `[i32; 4]` needs to be a pointer-sized type
 --> /home/runner/work/glacier/glacier/ices/102173.rs:7:13
  |
7 |     let i = [1, 2, 3, 4] as dyn* Debug;
  |             ^^^^^^^^^^^^ `[i32; 4]` needs to be a pointer-sized type
  |
  = help: the trait `PointerSized` is not implemented for `[i32; 4]`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0277]: `[i32; 4]` needs to be a pointer-sized type
 --> /home/runner/work/glacier/glacier/ices/102173.rs:7:13
  |
7 |     let i = [1, 2, 3, 4] as dyn* Debug;
  |             ^^^^^^^^^^^^ `[i32; 4]` needs to be a pointer-sized type
  |
  = help: the trait `PointerSized` is not implemented for `[i32; 4]`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
==============
@JohnTitor JohnTitor merged commit 607fbd6 into master Nov 20, 2022
@JohnTitor JohnTitor deleted the autofix/ices/102173.rs branch November 20, 2022 03:31
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