Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare trait object edge with leading paren #35

Open
harpocrates opened this issue Sep 22, 2019 · 0 comments
Open

Bare trait object edge with leading paren #35

harpocrates opened this issue Sep 22, 2019 · 0 comments
Labels

Comments

@harpocrates
Copy link
Owner

The following test case (taken from rustc's testsuite) doesn't parse:

// build-pass (FIXME(62277): could be check-pass?)

#![allow(bare_trait_objects)]

type A = Box<(Fn(u8) -> u8) + 'static + Send + Sync>; // OK (but see #39318)

fn main() {}

Besides being already controversial (check out the issue referenced) and one hell of an edge case, bare trait objects are on their way out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant