Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/traits/bound/auxiliary/crate_a1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
182 B
Rust
Raw Normal View History

fixup! Add negative tests where the diagnostic message would be wrong
2019-11-24 13:01:13 +01:00
pub trait Bar {}
move auxiliary builds to a test-relative `aux` Instead of finding aux-build files in `auxiliary`, we now search for an `aux` directory relative to the test. So if your test is `compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly, we ignore the `aux` directory when searching for tets.
2016-04-26 10:51:14 -07:00
fixup! Add negative tests where the diagnostic message would be wrong
2019-11-24 13:01:13 +01:00
pub fn try_foo(x: impl Bar) {}
move auxiliary builds to a test-relative `aux` Instead of finding aux-build files in `auxiliary`, we now search for an `aux` directory relative to the test. So if your test is `compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly, we ignore the `aux` directory when searching for tets.
2016-04-26 10:51:14 -07:00
fixup! Add negative tests where the diagnostic message would be wrong
2019-11-24 13:01:13 +01:00
pub struct ImplementsTraitForUsize<T> {
_marker: std::marker::PhantomData<T>,
}
impl Bar for ImplementsTraitForUsize<usize> {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4155ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API