]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/negative-impl.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / rustdoc / negative-impl.rs
1 #![feature(optin_builtin_traits)]
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"]//code' "impl !Send for Alpha"
9 impl !Send for Alpha {}
10
11 // @matches negative_impl/struct.Bravo.html '//*[@class="impl"]//code' "impl<B> !Send for Bravo<B>"
12 impl<B> !Send for Bravo<B> {}