]>
git.proxmox.com Git - rustc.git/blob - src/test/run-make/rustdoc-extern-method/bar.rs
1 // Copyright 2015 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.
11 #![feature(unboxed_closures)]
15 // @has bar/trait.Foo.html //pre "pub trait Foo"
16 // @has - '//*[@id="tymethod.foo"]//code' 'extern "rust-call" fn foo'
17 // @has - '//*[@id="tymethod.foo_"]//code' 'extern "rust-call" fn foo_'
20 // @has bar/trait.Bar.html //pre "pub trait Bar"
22 // @has - '//*[@id="tymethod.bar"]//code' 'extern "rust-call" fn bar'
23 extern "rust-call" fn bar(&self, _
: ());
24 // @has - '//*[@id="method.bar_"]//code' 'extern "rust-call" fn bar_'
25 extern "rust-call" fn bar_(&self, _
: ()) { }