This lint detects that a shift exceeds the type's number of bits. Some
example code that triggers this lint:
-```rust
+```rust,ignore
1_i32 << 32;
```
This lint detects type parameter default erroneously allowed in invalid location. Some
example code that triggers this lint:
-```rust
+```rust,ignore
fn foo<T=i32>(t: T) {}
```
visibility rules, and changed the visibility of struct constructors. Some
example code that triggers this lint:
-```rust
+```rust,ignore
mod m {
pub struct S(u8);
This lint detects names that resolve to ambiguous glob imports. Some example
code that triggers this lint:
-```rust
+```rust,ignore
pub struct Foo;
mod bar {
This lint catches transmuting from `&T` to `&mut T` becuase it is undefined
behavior. Some example code that triggers this lint:
-```rust
+```rust,ignore
unsafe {
let y = std::mem::transmute::<&i32, &mut i32>(&5);
}
This lint detects any `const` items with the `#[no_mangle]` attribute.
Constants do not have their symbols exported, and therefore, this probably
-means you meant to use a `static`, not a `const. Some example code that
+means you meant to use a `static`, not a `const`. Some example code that
triggers this lint:
-```rust
+```rust,ignore
#[no_mangle]
const FOO: i32 = 5;
```
This lint detects incorrect parentheses. Some example code that triggers this
lint:
-```rust
+```rust,ignore
let x = 5 as usize();
```
This lint detects an unknown crate type found in a `#[crate_type]` directive. Some
example code that triggers this lint:
-```rust
+```rust,ignore
#![crate_type="lol"]
```
1 | #![crate_type="lol"]
| ^^^^^^^^^^^^^^^^^^^^
|
-```
\ No newline at end of file
+```