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

pub method preceeded by attribute can't be parsed #3753

Closed
brson opened this issue Oct 13, 2012 · 1 comment
Closed

pub method preceeded by attribute can't be parsed #3753

brson opened this issue Oct 13, 2012 · 1 comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Oct 13, 2012

pub impl LocalImageCache {                                                                                                                         
    /// The local cache will only do a single remote request for a given                                                                           
    /// URL in each 'round'. Layout should call this each time it begins                                                                                                                                                                        
    pub fn next_round(on_image_available: ~fn(ImageResponseMsg)) {                                                                           
        self.round_number += 1;                                                                                                                    
        self.on_image_available = Some(move on_image_available);                                                                                   
    } 
/home/banderson/Dev/servo/src/servo/resource/local_image_cache.rs:41:4: 41:7 error: unexpected token: `pub`
/home/banderson/Dev/servo/src/servo/resource/local_image_cache.rs:41     pub fn next_round(on_image_available: ~fn(ImageResponseMsg)) {

vertexclique added a commit to vertexclique/rust that referenced this issue Oct 24, 2012
@brson
Copy link
Contributor Author

brson commented Oct 27, 2012

Fixed by @vertexclique

@brson brson closed this as completed Oct 27, 2012
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant