summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0308.stderr
blob: 490a8e0ff0f1d1cfb0217d59aa67c741df9b0c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0308]: intrinsic has wrong type
  --> $DIR/E0308.rs:14:5
   |
LL |     fn size_of<T>(); //~ ERROR E0308
   |     ^^^^^^^^^^^^^^^^ expected (), found usize
   |
   = note: expected type `unsafe extern "rust-intrinsic" fn()`
              found type `unsafe extern "rust-intrinsic" fn() -> usize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.