Skip to content

Commit

Permalink
Another use of turbofish_span
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 26, 2024
1 parent 9f30730 commit 9b3ac35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/noirc_frontend/src/elaborator/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1623,8 +1623,7 @@ impl<'context> Elaborator<'context> {
}

if segment.generics.is_some() {
// From "foo::<T>", create a span for just "::<T>"
let span = Span::from(segment.ident.span().end()..segment.span.end());
let span = segment.turbofish_span();
self.push_err(TypeCheckError::UnsupportedTurbofishUsage { span });
}
}
Expand Down

0 comments on commit 9b3ac35

Please sign in to comment.