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/issues/issue-23041.rs

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

8 lines
168 B
Rust
Raw Normal View History

Split up tests, reduce coverage
2015-04-24 12:34:27 -06:00
use std::any::Any;
fn main()
{
fn bar(x:i32) ->i32 { 3*x };
Update ui test suite to use dyn
2019-05-28 14:46:13 -04:00
let b:Box<dyn Any> = Box::new(bar as fn(_)->_);
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
b.downcast_ref::<fn(_)->_>(); //~ ERROR E0282
Delay specific span_bug() call until abort_if_errors() An actual typeck error is the cause of many failed compilations but an unrelated bug is being reported instead. It is triggered because a typeck error is presumably not yet identified during compiler execution, which would normally bypass an invariant in the presence of other errors. In this particular situation, we delay the reporting of the bug until abort_if_errors(). Closes #23827, closes #24356, closes #23041, closes #22897, closes #23966, closes #24013, and closes #23729
2015-04-13 01:13:09 -06:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4769ms 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