about summary refs log tree commit diff
path: root/src/test/rustdoc/negative-impl.rs
blob: d76aac6906c46d3cac0fc85f1456f9226cbe5a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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"]//code' "impl !Send for Alpha"
impl !Send for Alpha {}

// @matches negative_impl/struct.Bravo.html '//*[@class="impl"]//code' "impl<B> !Send for Bravo<B>"
impl<B> !Send for Bravo<B> {}