]> git.lizzy.rs Git - rust.git/blob - tests/ui/auxiliary/svh-b.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / auxiliary / svh-b.rs
1 //! This is a client of the `a` crate defined in `svn-a-base.rs`. The
2 //! rpass and cfail tests (such as `run-pass/svh-add-comment.rs`) use
3 //! it by swapping in a different object code library crate built from
4 //! some variant of `svn-a-base.rs`, and then we are checking if the
5 //! compiler properly ignores or accepts the change, based on whether
6 //! the change could affect the downstream crate content or not
7 //! (#14132).
8
9 #![crate_name = "b"]
10
11 extern crate a;
12
13 pub fn foo() { assert_eq!(a::foo::<()>(0), 3); }