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
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/wf/wf-trait-bound.rs

16 lines
228 B
Rust
Raw Normal View History

New tests --- check that wf relation is being checked in various positions
2015-08-07 13:31:42 -04:00
// Test that we check supertrait bounds for WFedness.
#![feature(associated_type_defaults)]
remove `#[rustc_error]` from ui/ tests that remain compile-fail tests.
2018-10-31 00:18:11 +01:00
New tests --- check that wf relation is being checked in various positions
2015-08-07 13:31:42 -04:00
#![allow(dead_code)]
trait ExtraCopy<T:Copy> { }
Use more accurate failed predicate spans
2020-01-29 16:55:37 -08:00
trait SomeTrait<T,U>
where T: ExtraCopy<U> //~ ERROR E0277
New tests --- check that wf relation is being checked in various positions
2015-08-07 13:31:42 -04:00
{
}
remove `#[rustc_error]` from ui/ tests that remain compile-fail tests.
2018-10-31 00:18:11 +01:00
Make RFC 1214 warnings into errors, and rip out the "warn or err" associated machinery. Future such attempts should go through lints anyhow. There is a fair amount of fallout in the compile-fail tests, as WF checking now occurs earlier in the process.
2015-12-15 04:31:58 -05:00
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 7545ms 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