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

ices/81786.sh: fixed with no errors #1182

Merged
merged 1 commit into from
Mar 25, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#81786

#!/bin/sh

cat > out.rs <<'EOF'
#![feature(auto_traits, negative_impls)]

auto trait AutoTrait {}

pub struct Struct<K, V> {
    k: K,
    v: V
}

impl<T> !AutoTrait for *const T {}

impl<K, V> AutoTrait for Struct<K, V>
where
    K: AutoTrait,
    V: AutoTrait,
{
}

impl AutoTrait for Struct<usize, *const usize> {}

pub struct Wrap<'a> {
    inner: &'a Struct<usize, *const usize>,
}

fn main() {}
EOF

rustdoc out.rs -Z unstable-options --output-format json
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@Alexendoo Alexendoo merged commit b529d48 into master Mar 25, 2022
@Alexendoo Alexendoo deleted the autofix/ices/81786.sh branch March 25, 2022 18:39
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