]> git.proxmox.com Git - rustc.git/blob - tests/ui/auxiliary/svh-a-base.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / auxiliary / svh-a-base.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:U>(_: isize) -> isize {
20 3
21 }
22
23 pub fn an_unused_name() -> isize {
24 4
25 }