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
901b340c1f5d208561d4261cc3ee634973b35326
rust/tests/ui/wf/wf-in-fn-where-clause.rs

16 lines
206 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
// Check that we enforce WF conditions also for where clauses in fn items.
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 MustBeCopy<T:Copy> {
}
Use more accurate failed predicate spans
2020-01-29 16:55:37 -08:00
fn bar<T,U>()
where T: MustBeCopy<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: 7558ms 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