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

ices/81786.sh: fixed with errors #713

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 9, 2021

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 --output-format json
=== stdout ===
=== stderr ===
error: the -Z unstable-options flag must be passed to enable --output-format for documentation generation (see https://github.com/rust-lang/rust/issues/76578)

==============

=== stdout ===
=== stderr ===
error: the -Z unstable-options flag must be passed to enable --output-format for documentation generation (see rust-lang/rust#76578)

==============
@Alexendoo Alexendoo closed this in f86bf61 Apr 9, 2021
@Alexendoo Alexendoo deleted the autofix/ices/81786.sh branch April 9, 2021 14:29
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.

1 participant