Skip to content

glob-imported const not resolved after used as a binding #1911

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

Closed
brson opened this issue Feb 29, 2012 · 0 comments
Closed

glob-imported const not resolved after used as a binding #1911

brson opened this issue Feb 29, 2012 · 0 comments
Labels
A-resolve Area: Name/path resolution done by `rustc_resolve` specifically

Comments

@brson
Copy link
Contributor

brson commented Feb 29, 2012

import clang::*;                                                                                                    

fn main(args: [str]) {                                                                                       
    alt 0 {                                                                                                         
        CXType_Record {                                                                                             
          fail                                                                                                      
        }                                                                                                           
        _ {                                                                                                         
          fail                                                                                                      
        }                                                                                                           
    };                                                                                                              
    log(error, CXType_Record);                                                                                      
}                                                                                                                   

mod clang {                                                                                                         
    const CXType_Record: int = 105;                                                                                 
}
../src/test/run-pass/import-glob-2.rs:12:15: 12:28 error: unresolved name: CXType_Record
../src/test/run-pass/import-glob-2.rs:12     log(error, CXType_Record);
@ghost ghost assigned marijnh Mar 8, 2012
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
* Update rustdoc-internals.md

Minor updates to syntax and some clarifications.

* updates

* Update rustdoc-internals.md
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
* Update rustdoc-internals.md

Minor updates to syntax and some clarifications.

* updates

* Update rustdoc-internals.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-resolve Area: Name/path resolution done by `rustc_resolve` specifically
Projects
None yet
Development

No branches or pull requests

2 participants