Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/borrowck/issue-17545.rs

11 lines
195 B
Rust
Raw Normal View History

rustc: rework stability to be on-demand for type-directed lookup.
2016-11-10 19:08:21 +02:00
#![feature(fn_traits)]
Stabilize rvalue promotion to 'static.
2017-08-13 11:46:49 +03:00
fn id<T>(x: T) -> T { x }
Update test files; mostly the problem is that they were using the explicit form `Fn<A,B>` and now should use `Fn(A) -> B` or `Fn<A,Output=B>`, but in some cases we get duplicate error reports. This is mildly annoying and arises because of the main error and another error from the projection. Might be worth squashing those, but seems like a separate problem.
2015-01-12 10:27:25 -05:00
pub fn foo<'a, F: Fn(&'a ())>(bar: F) {
Add tests for E-needstest issues
2014-12-07 15:22:06 +00:00
bar.call((
update tests for migrate mode by default
2019-04-22 08:40:08 +01:00
&id(()), //~ ERROR temporary value dropped while borrowed
Add tests for E-needstest issues
2014-12-07 15:22:06 +00:00
));
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2816ms 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