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
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/impl-trait/xcrate.rs

12 lines
234 B
Rust
Raw Normal View History

Add `// run-pass` to collection of tests.
2018-09-06 14:41:12 +02:00
// run-pass
rustc_privacy: visit Ty instead of HIR types in EmbargoVisitor.
2016-11-28 05:09:28 +02:00
// aux-build:xcrate.rs
extern crate xcrate;
fn main() {
Spellchecking some comments This PR attempts to clean up some minor spelling mistakes in comments
2022-03-30 01:39:38 -04:00
// NOTE line below commented out due to issue #45994
Disallow all impl Trait within Fn trait sugar We already disallowed them to be in the arg list, such as Fn(impl Debug), but now we disallow Fn() -> impl Debug. Also remove the ImplTraitContext argument from the function lower_parenthesized_parameter_data as it is now unused. Comment out part of test run-pass/impl-trait/xcrate.rs that now fails.
2017-11-14 19:57:09 -05:00
// assert_eq!(xcrate::fourway_add(1)(2)(3)(4), 10);
Mark closures return via impl-trait as reachable.
2017-08-14 12:04:52 +02:00
xcrate::return_closure_accessing_internal_fn()();
rustc_privacy: visit Ty instead of HIR types in EmbargoVisitor.
2016-11-28 05:09:28 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2680ms 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