diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2017-12-19 15:04:02 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2017-12-19 15:04:02 +0100 |
| commit | aa030dd3deb438c688c85c32eb75d009378c5f12 (patch) | |
| tree | 4c8fc9464cd02579793853cf7b3fd68c75e01c68 /src/test/compile-fail/auxiliary | |
| parent | a9f047c048eac4f135dd6df5223b7195d651539d (diff) | |
| download | rust-aa030dd3deb438c688c85c32eb75d009378c5f12.tar.gz rust-aa030dd3deb438c688c85c32eb75d009378c5f12.zip | |
Followup for #46112.
Sorting by crate-num should ensure that we favor `std::foo::bar` over `any_other_crate::foo::bar`. Interestingly, *this* change had a much larger impact on our internal test suite than PR #46708 (which was my original fix to #46112).
Diffstat (limited to 'src/test/compile-fail/auxiliary')
| -rw-r--r-- | src/test/compile-fail/auxiliary/issue_1920.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/compile-fail/auxiliary/issue_1920.rs b/src/test/compile-fail/auxiliary/issue_1920.rs new file mode 100644 index 00000000000..55065174ca7 --- /dev/null +++ b/src/test/compile-fail/auxiliary/issue_1920.rs @@ -0,0 +1,14 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// Just exporting some type to test for correct diagnostics when this +// crate is pulled in at a non-root location in client crate. + +pub struct S; |
