rust/tests/rustdoc/negative-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
516 B
Rust
Raw Normal View History

#![feature(negative_impls)]
//@ matches negative_impl/struct.Alpha.html '//pre' "pub struct Alpha"
pub struct Alpha;
//@ matches negative_impl/struct.Bravo.html '//pre' "pub struct Bravo<B>"
pub struct Bravo<B>(B);
//@ matches negative_impl/struct.Alpha.html '//*[@class="impl"]//h3[@class="code-header"]' \
2021-06-02 08:59:10 +00:00
// "impl !Send for Alpha"
impl !Send for Alpha {}
//@ matches negative_impl/struct.Bravo.html '//*[@class="impl"]//h3[@class="code-header"]' "\
2021-06-02 08:59:10 +00:00
// impl<B> !Send for Bravo<B>"
impl<B> !Send for Bravo<B> {}