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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/coherence/coherence-no-direct-lifetime-dispatch.rs

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

10 lines
191 B
Rust
Raw Normal View History

Add basic specialization tests, including for default item inheritance. Updates some of the coherence tests as well.
2015-12-28 15:40:11 -08:00
// Test that you cannot *directly* dispatch on lifetime requirements
Implement RFC 1268 This patch allows overlap to occur between any two impls of a trait for traits which have no associated items. Several compile-fail tests around coherence had to be changed to add at least one item to the trait they test against. Ref #29864
2017-02-25 16:16:27 -05:00
trait MyTrait { fn foo() {} }
Add basic specialization tests, including for default item inheritance. Updates some of the coherence tests as well.
2015-12-28 15:40:11 -08:00
impl<T> MyTrait for T {}
Unify tests Implement compile tests as variants of existing tests
2018-12-29 00:11:13 +01:00
impl<T: 'static> MyTrait for T {}
Stabilize the `re_rebalance_coherence` feature
2019-10-26 17:28:02 +02:00
//~^ ERROR E0119
Add basic specialization tests, including for default item inheritance. Updates some of the coherence tests as well.
2015-12-28 15:40:11 -08:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2370ms Template: 3ms
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