prog.cpp: In function 'int main()':
prog.cpp:15:9: error: invalid initialization of non-const reference of type 'uint8_t& {aka unsigned char&}' from an rvalue of type 'uint8_t {aka unsigned char}'
foo(baz);
^
prog.cpp:8:6: note: initializing argument 1 of 'void foo(uint8_t&)'
void foo(uint8_t& v) {}
^