]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0308.stderr
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / ui / error-codes / E0308.stderr
1 error[E0308]: intrinsic has wrong type
2   --> $DIR/E0308.rs:4:5
3    |
4 LL |     fn size_of<T>();
5    |     ^^^^^^^^^^^^^^^^ expected `()`, found `usize`
6    |
7    = note: expected fn pointer `extern "rust-intrinsic" fn()`
8               found fn pointer `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`.