]> git.lizzy.rs Git - rust.git/blob - src/test/ui/svh/auxiliary/svh-a-change-trait-bound.rs
Rollup merge of #56594 - sdroege:c_void-is-not-never, r=TimNN
[rust.git] / src / test / ui / svh / auxiliary / svh-a-change-trait-bound.rs
1 //! The `svh-a-*.rs` files are all deviations from the base file
2 //! svh-a-base.rs with some difference (usually in `fn foo`) that
3 //! should not affect the strict version hash (SVH) computation
4 //! (#14132).
5
6 #![crate_name = "a"]
7
8 macro_rules! three {
9     () => { 3 }
10 }
11
12 pub trait U {}
13 pub trait V {}
14 impl U for () {}
15 impl V for () {}
16
17 static A_CONSTANT : isize = 2;
18
19 pub fn foo<T:V>(_: isize) -> isize {
20     3
21 }
22
23 pub fn an_unused_name() -> isize {
24     4
25 }