I experienced an odd bug where I imported the CamerRaycaster script and then created out Layer enum. The raycaster script could not find my enum until I deleted the CameraRaycaster script and reimported it. Spent 20 minutes trying to find a typo or a mistake but appears to just be a weird little glitch.
Unity version 5.5.2