]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/stable-symbol-names/stable-symbol-names2.rs
trans: Treat generics like regular functions, not like #[inline] functions during...
[rust.git] / src / test / run-make / stable-symbol-names / stable-symbol-names2.rs
1 // Copyright 2016 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.
4 //
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.
10
11 #![crate_type="rlib"]
12
13 extern crate stable_symbol_names1;
14
15 pub fn user() {
16   stable_symbol_names1::generic_function(1u32);
17   stable_symbol_names1::generic_function("def");
18   let x = 2u64;
19   stable_symbol_names1::generic_function(&x);
20   stable_symbol_names1::mono_function();
21   stable_symbol_names1::mono_function_lifetime(&0);
22 }
23
24 pub fn trait_impl_test_function() {
25   use stable_symbol_names1::*;
26   Bar::generic_method::<Bar>();
27 }
28