RS.CLIPPY.BUILTIN_TYPE_SHADOW

Shadowing a builtin type

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: builtin_type_shadow. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Warns if a generic shadows a built-in type.

Why is this bad?

This gives surprising type errors.

Example

impl<u32> Foo<u32> {
    fn impl_func(&self) -> u32 {
        42
    }
}