1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
13 // @has foo/struct.Alpha.html '//pre' "pub struct Alpha<A> where A: MyTrait"
14 pub struct Alpha<A> where A: MyTrait;
15 // @has foo/trait.Bravo.html '//pre' "pub trait Bravo<B> where B: MyTrait"
16 pub trait Bravo<B> where B: MyTrait {}
17 // @has foo/fn.charlie.html '//pre' "pub fn charlie<C>() where C: MyTrait"
18 pub fn charlie<C>() where C: MyTrait {}
21 // @has foo/struct.Delta.html '//*[@class="impl"]//code' \
22 // "impl<D> Delta<D> where D: MyTrait"
23 impl<D> Delta<D> where D: MyTrait {
28 // @has foo/struct.Echo.html '//*[@class="impl"]//code' \
29 // "impl<E> MyTrait for Echo<E> where E: MyTrait"
30 // @has foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \
31 // "impl<E> MyTrait for Echo<E> where E: MyTrait"
32 impl<E> MyTrait for Echo<E> where E: MyTrait {}
34 pub enum Foxtrot<F> {}
35 // @has foo/enum.Foxtrot.html '//*[@class="impl"]//code' \
36 // "impl<F> MyTrait for Foxtrot<F> where F: MyTrait"
37 // @has foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \
38 // "impl<F> MyTrait for Foxtrot<F> where F: MyTrait"
39 impl<F> MyTrait for Foxtrot<F> where F: MyTrait {}