Open
Description
This came up in rust-lang/miri#3498: a user wrote code roughly like this
#![no_main]
#![feature(start)]
#[start]
fn main() {}
and then was surprised that the resulting program didn't have a start function.
The start
attribute seems to be entirely ignored, because usually there would be an error that the signature is wrong.
The combination of no_main and the start
attribute should probably emit a suitable diagnostic, instead of silently ignoring the attribute.