Skip to content

Missing pow implementation for integers #11499

Closed
@flaper87

Description

@flaper87
$ cat test.rs                                                                                                                                                                                   101 ↵  
fn main() {
    2.pow(3);
}
$ rustc test.rs                                                                                                                                                                                        
test.rs:2:5: 2:14 error: type `<VI0>` does not implement any method in scope named `pow`
test.rs:2     2.pow(3);
              ^~~~~~~~~
error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /home/flaper87/workspace/personal/rust/src/libsyntax/diagnostic.rs:75
task '<main>' failed at 'explicit failure', /home/flaper87/workspace/personal/rust/src/librustc/lib.rs:453

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions