]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/negative-impl.rs
Auto merge of #106959 - tmiasko:opt-funclets, r=davidtwco
[rust.git] / tests / rustdoc / negative-impl.rs
1 #![feature(negative_impls)]
2
3 // @matches negative_impl/struct.Alpha.html '//pre' "pub struct Alpha"
4 pub struct Alpha;
5 // @matches negative_impl/struct.Bravo.html '//pre' "pub struct Bravo<B>"
6 pub struct Bravo<B>(B);
7
8 // @matches negative_impl/struct.Alpha.html '//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
9 // "impl !Send for Alpha"
10 impl !Send for Alpha {}
11
12 // @matches negative_impl/struct.Bravo.html '//*[@class="impl has-srclink"]//h3[@class="code-header"]' "\
13 // impl<B> !Send for Bravo<B>"
14 impl<B> !Send for Bravo<B> {}