void fn() { const int a = 10; int* b = &a; *b = 20; }
Standard input is empty
prog.cpp:5:6: error: cannot initialize a variable of type 'int *' with an rvalue of type 'const int *'
int* b = &a;
^ ~~
1 error generated.
Standard output is empty