]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0308.stderr
introduce Guard enum
[rust.git] / src / test / ui / error-codes / E0308.stderr
1 error[E0308]: intrinsic has wrong type
2   --> $DIR/E0308.rs:14:5
3    |
4 LL |     fn size_of<T>(); //~ ERROR E0308
5    |     ^^^^^^^^^^^^^^^^ expected (), found usize
6    |
7    = note: expected type `unsafe extern "rust-intrinsic" fn()`
8               found type `unsafe extern "rust-intrinsic" fn() -> usize`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.