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

ices/102124.sh: fixed with no errors #1433

Merged
merged 1 commit into from
Oct 3, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 2, 2022

Issue: rust-lang/rust#102124

#!/bin/bash

rustc -Zmir-opt-level=3 - <<'EOF'

const L: usize = 4;

pub trait Print<const N: usize> {
    fn print(&self) -> usize {
        N
    }
}

pub struct Printer;
impl Print<L> for Printer {}

fn main() {
    let p = Printer;
    assert_eq!(p.print(), 4);
}

EOF

=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@Alexendoo Alexendoo merged commit 0c734c8 into master Oct 3, 2022
@Alexendoo Alexendoo deleted the autofix/ices/102124.sh branch October 3, 2022 15:37
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