Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Oct 1, 2024
1 parent 3223b5b commit 50999da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/noirc_frontend/src/tests/turbofish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ fn turbofish_numeric_generic_nested_call() {
}
impl<T> Foo<T> {
fn static_method<let N: u32>() -> [u8; N] {
pub fn static_method<let N: u32>() -> [u8; N] {
[0; N]
}
fn impl_method<let N: u32>(self) -> [T; N] {
pub fn impl_method<let N: u32>(self) -> [T; N] {
[self.a; N]
}
}
Expand Down Expand Up @@ -108,7 +108,7 @@ fn turbofish_in_middle_of_variable_unsupported_yet() {
}
impl <T> Foo<T> {
fn new(x: T) -> Self {
pub fn new(x: T) -> Self {
Foo { x }
}
}
Expand Down

0 comments on commit 50999da

Please sign in to comment.