]> git.lizzy.rs Git - rust.git/blob - src/test/ui/svh/auxiliary/svh-b.rs
Auto merge of #56838 - Aaron1011:fix/rustdoc-infer-unify, r=nikomatsakis
[rust.git] / src / test / ui / svh / 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); }